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 %>

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?

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

----- Original Message -----
From: Patrick L.
To: [email protected]
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
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails