On 1 December 2015 at 18:32, fugee ohu <fugee279@gmail.com> wrote:
> I have a time field named duration and i wanna create a select list with
> options in the model for "1 week", "11 days" I know how to create for a
> basic select but not for time
I have not tried it, but I would be surprised if giving the select box
elapsed time values (such as 1.week, 11.days, the difference of two
Time values, and so on) did not just work. Have you tried?
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLveN%3DLvRxGMKO8kqchSLW0cRpr6HjaVqg2yEiBOVDXPVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment