Displaying 8 results from an estimated 8 matches for "catalogentry".
2006 Jan 17
2
file_column plugin and instance variables
To make file_column work I have to copy my local variable back to an
instance variables like this:
<% for product in @products
@product = product %>
<div class="catalogentry">
<%= image_tag url_for_file_column(''product'', ''image_url'') %></p>
This is needed because file_column specifically looks for the instance
version of the variable.
def url_for_file_column(object, method, subdir=nil)
case object...
2006 Mar 06
5
Rails MySQL query
...what I
want, but I?m not sure how to make a list and display it in rails?
This code displays every product with some of its fields, but I want
it to only display the products that has the field category set to
"jacket"
<% for product in @products -%>
<div class="catalogentry">
<img src="<%= product.image_url %>"/>
<h3> <%= product.brand %> <%= h(product.title) %> </h3>
<%= product.description %>
<br>
I would be very grateful it anyone could help me out with some
exa...
2005 Dec 24
2
Common menu
Hi,
I''m releasing my first rails application and I''d like to have a common
menu in all my templates.
Do I have to include an rhtml from .rb or other rhtml ? Some sample code pls
?
Regards,
Fabian
2006 May 05
1
Agile Rails (1st edition), depot TDD "exercise"
...earch.rhtml
4. Edit depot/app/views/search/search.rhtml
Add in another set of <div> tags around it so we have <div
class="results"> as the outermost one. It now looks like:
<div class="results">
<% @products.each do |product| %>
<div class="catalogentry">
<img src="<%= product.image_url %>"/>
<h3><%= h product.title %></h3>
<%= product.description %>
<span class="catalogprice"><%= fmt_dollars(product.price) %></
span>
<%= link_t...
2006 Apr 11
2
Extending Depot Example
Hi
I am new to the whole Rails/Ruby world as having come from a MS .NET
background, but I have followed the Depot example in the Agile Web Dev.
with Rails book with relative ease. However as an exercise to see how
much I had understood, I thought I would attempt to modify the example a
bit and add a Quantity field to the store index so as to pass that value
into the cart. I have extended the
2006 May 06
1
depot test-driven development exercise
...earch.rhtml
4. Edit depot/app/views/search/search.rhtml
Add in another set of <div> tags around it so we have <div
class="results"> as the outermost one. It now looks like:
<div class="results">
<% @products.each do |product| %>
<div class="catalogentry">
<img src="<%= product.image_url %>"/>
<h3><%= h product.title %></h3>
<%= product.description %>
<span class="catalogprice"><%= fmt_dollars(product.price) %></
span>
<%= link_t...
2006 Apr 08
16
International characters
I am new to Ruby on Rails. I have read a lot, and bought several books,
and now I have started to implement a modified "shopping cart",
following the AWDWR-book, with modifications to suit our application
(subscriptions and memberships).
Having done up to chapter 7 I have had no real problems, except one:
Since our customers are Swedish I need the screen names, texts etc to be
in
2006 May 06
0
RE: Rails Digest, Vol 20, Issue 156
...earch.rhtml
4. Edit depot/app/views/search/search.rhtml
Add in another set of <div> tags around it so we have <div
class="results"> as the outermost one. It now looks like:
<div class="results">
<% @products.each do |product| %>
<div class="catalogentry">
<img src="<%= product.image_url %>"/>
<h3><%= h product.title %></h3>
<%= product.description %>
<span class="catalogprice"><%= fmt_dollars(product.price) %></
span>
<%= link_t...