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

前端 未结 8 1645
耶瑟儿~
耶瑟儿~ 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 03:07

    Passing :input_html options override default values. You must check attributes values for css classes that can modify their behavior.

    <%= f.input : message, :as => :text, :input_html => { 'rows' => 10} %>
    

提交回复
热议问题