0

I tried to change the size of datetime_select using size and width and height but it seem not working they are so big while they just contain a number on them ?

<%= f.datetime_select :start_time, :order => [:day, :month, :year, :hour,:minute] , start_year: Time.now.year,:size => 5 %>

any soultion to this ?

thanks so much

user1452250
  • 53
  • 1
  • 1
  • 4

1 Answers1

1

Try this:

<%= f.datetime_select :start_time, 
    { :order => [:day, :month, :year, :hour,:minute], :start_year => Time.now.year }, 
    :size => 5 %>
KL-7
  • 46,000
  • 9
  • 87
  • 74