i’d like to change minutes range. I have in haml:
= f.input :open_from, :as => :time, :label => "open from:"
and i want minutes only 0, 15, 30, 45, not 0..59. Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SimpleForm delegates the input generation to Rais time_select method. As you can see here, you can pass a :minute_step options to input call. Like this: