Help


#1

I am at a lost with error below:

Extracted source (around line #15):

12:

Category:

13:
14:
15: <% @categories.each do |category| %>
16: <option value="<%= category.id %>"
17: <%= ‘selected’ if category.id == @product.category_id %>>
18: <%= category.name %>


#2

Patrick L. wrote:

I am at a lost with error below:

Extracted source (around line #15):

12:

Category:

13:
14:
15: <% @categories.each do |category| %>
16: <option value="<%= category.id %>"
17: <%= ‘selected’ if category.id == @product.category_id %>>
18: <%= category.name %>

A <% end > does close the do block at some point, right?


#3

Could be wrong but this looks like clientside code and there should
probably be some dynamics in there.

----- Original Message -----
From: Patrick L.
To: removed_email_address@domain.invalid
Sent: Saturday, January 07, 2006 7:14 AM
Subject: [Rails] help

I am at a lost with error below:

Extracted source (around line #15):

12:

Category:

13:
14:
15: <% @categories.each do |category| %>
16: <option value="<%= category.id %>"
17: <%= ‘selected’ if category.id == @product.category_id %>>
18: <%= category.name %>



Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails