I have a database called adverts with an field heading_id
Then i create a select with the options from the table heading, name.
But when i save that form_tag the field heading_id is currently NULL all
other fields are saved but heading_id doesn''t changed
<%= select("advert", "heading_id",
Heading.find(:all).collect {|p| [
p.name, p.id ] }, { :prompt => "selecteer een rubriek"})
%>
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---