Hi,

Just like with input tags in a form, where parameter naming can be 
influenced by modifying the tag name attribute...

<input id="person_name" name="person[name]" type="text" value="Henry"/>

...results in...

{'person' => {'name' => 'Henry'}}

(source: guides.rubyonrails.org/form_helpers.html#basic-structures)

Can I insert attributes into form_tag to customize the parameterization of 
all items inside? For example,

{'whatever_i_want_to_use_as_a_key' => {'person' => {'name' => 'Henry'}}}

Thx,

Lille


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/b8-V7wRzu_kJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to