Home
Ruby on Rails
Cheatsheets
f.error_messages_for
f.check_box :terms, { :class => 'check' }, "yes", "no"
f.file_field :image
f.hidden_field :id
f.label :customer, "Text for label"
f.password_field :password
f.radio_button :language, "French"
f.text_area :comment, :size => "20x30", :disabled => "disabled"
f.text_field :age, :size => "20", :class => "age_box"
Sometimes you want to quickly see the output of helper methods, and constantly clicking refresh in your browser then viewing the page source can be tiresome. Instead, use the Rails console to check helpers are doing what you want them to.
More