name_root
Changes the root name to the given string.
Usage
name_root str
Description
The root name is the prefix for the name
attributes.
When invoked with a string, it changes the root name. Example: (
root_name 'editor'
=><input name='editor[name]'>
)When invoked with an array, it changes the root names. Example: (
root_name %w(form user)
=><input name='form[user][name]'>
)When invoked without arguments, it returns the root name.