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

前端 未结 8 1677
耶瑟儿~
耶瑟儿~ 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:47

    Old question, I know. This is what worked for me with SimpleForm 3.2.0 and Rails 4.2.3:

    <%= f.input_field :field_name, as: :text, class: "my-custom-class", rows: 5 %>
    

提交回复
热议问题