Hello,
I'm having problems with form select tag (it wont select the expected
value on edit action):
<% form_for @review do |f| %>
<p>
<%= f.label :customer_service_rating %><br />
<%= f.select :customer_service_rating, options_for_select(1..5), {
:include_blank => true } %>
</p>
<% end %>
review model has a customer_service_rating column which is an integer.
If I set this value to some number betwen 1-5 it wont select it on edit.
What am I doing wrong here?
Thanks for help!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---