Hi, real newbie question.
How come this wont save to the database!
<%= select(:to_time_unit, 'id', @time.timearray) %>
to_time_unit is the column is the database that is to hold the selected
time unit.
'id' is just somethign I made up I dont know whether it is relevant
@time.timearray gets a method from the model that lists an array of
times
-second
-minute
-hour
However when I submit my form that holds this select field, it does not
save it to the database, it enters null into the database.
What am I doing wrong please help me!
--
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.