I’m new to ruby and rails and got problems with using basic methods like
form_tag or link_to etc to create what i need, i.e. to specify css class
or id or name of html elements.
I have problem with understanding rails api (it’s just as an example):
form_tag(url_for_options = {}, options = {}, *parameters_for_url)
what parameters can i pass to form_tag? How to specify class, name or id
(those are things i need most)?
If someone could clarify the notation used here i’d be very grateful.
I’m new to ruby and rails and got problems with using basic methods like
form_tag or link_to etc to create what i need, i.e. to specify css class
or id or name of html elements.
I have problem with understanding rails api (it’s just as an example):
form_tag(url_for_options = {}, options = {}, *parameters_for_url)
what parameters can i pass to form_tag? How to specify class, name or id
(those are things i need most)?
Most of the tag helper methods (form_tag and link_to included) take an
options or html_options hash that is used for specifying tag attributes,
e.g: