can't change the height of a text field in simple_form

前端 未结 8 1694
耶瑟儿~
耶瑟儿~ 2021-02-19 02:22

I\'ve tried

  #Default size for text inputs.  
  config.default_input_size = 10

from config/initializers/simple_form.rb

I\'ve also tri

8条回答
  •  自闭症患者
    2021-02-19 02:50

    You can do

    <%= f.input :message, :size => "10x10" %>
    

    for height and width.

    It might work for text field but definitely works for text_area. You probably would want to use text_area for a message anyway.

提交回复
热议问题