Search code examples
ruby-on-railsruby-on-rails-4rowssimple-formformbuilder

f.input rows not working Rails 4


Using simple form and f.input on my rails 4 app, however, the row amount is not working. Displays 1 row only.

<%= simple_form_for(@article) do |f| %>
<%= f.error_notification %>

  <%= f.input :whyrating, :input_html => { :rows => 5 } %>

<% end %>

also tried without input_html

<%= f.input :whyrating, label:"Why it deserves this rating", :rows => 5 } %>

Does anyone no the reason why? I'm sure it's something simple but can't figure it out for the life of me.


Solution

  • I went with f.text_area and it worked fine.