ruby - Strip undesired values from Rails' time_select() -
can point me solution stripping out undesired values ruby on rails time_select?
basically, time_select shows hours 00 24, in app need prevent users choosing hours before 08 , after 16 directly in select tag , there not seem corresponding option can pass time_select.
you use select_time or select_hour.
select_time(my_time, start_hour: 8, end_hour: 16) # generates time select field hours range 8 16 select_hour(my_time, start_hour: 8, end_hour: 16) # generates time select field hours range 8 16 so restricting user select time in between 8 , 16.
Comments
Post a Comment