The top 10-15 rails see helpers, should I learn first?

I study rails 3 and want to know which vision assistants I should master first?

i.e. which ones are most commonly used?

1. form_for 2. ?? .. .. 
+7
source share
2 answers

I think that they are generally considered very important, and they should give you a good start to understand the code and create your own forms and pages.

  • form_for
  • link_to
  • IMAGE_TAG
  • stylesheet_link_tag
  • javascript_include_tag
  • content_for
  • label_tag
  • text_field_tag
  • submit_tag
  • select_tag
  • options_for_select
  • check_box_tag
  • radio_button_tag
  • form_tag
  • collection_select

Some other useful ones:

  • auto_link
  • plural
  • simple_format

I would also work on understanding the difference between just calling select_tag and calling f.select, where f is the form_for variable. These are usually two different ways to create forms with helpers in Rails.

I would also like to make sure that you understand the html_safe, raw and h functions for strings and display the text on your page.

+9
source

If you have not already done so, read the tutorial here:

http://edgeguides.rubyonrails.org/form_helpers.html

+2
source

All Articles