Could be wrong but this looks like clientside code and there should probably be
some dynamics in there.
<select name="product[category_id]">
----- Original Message -----
From: Patrick Lurlay
To: rails@lists.rubyonrails.org
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: <p><b>Category:</b><br>
13:
14: <select name="product[category_id]">
15: <% @categories.each do |category| %>
16: <option value="<%= category.id %>"
17: <%= ''selected'' if category.id ==
@product.category_id %>>
18: <%= category.name %>
------------------------------------------------------------------------------
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060107/c482c9ab/attachment.html