How do I make the text field area wider?
I tried:
f.text_field :title, size => 150
I also tried width, I am missing something here, what is it?
You can also do something like:
<%= f.text_area :description, :cols => "10", :rows => "10" %>
I think it should be
f.text_field :title, :size => 150
Or, you can add :class option and use css to define the size (I prefer)
Are you using the same in your code. I think you are missing a colon before the size.
<%= f.text_field :title, :size => 150 %>
or you can use
<%= f.text_field :title, "size" => 150 %>
size is an undefined local variable whereas :size and "size" are passed as options to the text field form helper
You can do it by simply using rows option in your text field. Like
<%= f.text_area :fieldname, :rows => "10" %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With