On 2 December 2015 at 07:03, fugee ohu <fugee279@gmail.com> wrote:
> can i pass min and max to datetime_select ?
Why have you asked the same question twice?
You can use validations to ensure that only valid values are saved,
but datetime_select is not able to limit the range.
I believe that in order to do that you would need a js solution such as
http://amsul.ca/pickadate.js/date/, though I have not used it.
Are you actually trying to input an elapsed time or is it an actual
datetime that you want?
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%3D0gLuZMQYjCxJm33oHcm79aM6EvWEmgUfY4zv0B-0k0Zhoig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment