The name attribute of form fields created in the following format:
person[address][street_address]
is parsed into a nested hash that looks like:
{ :person => { :address => { :street_address => "" } } }
That's a microformat.
On Aug 24, 3:51 pm, Marnen Laibow-Koser <li...@ruby-forum.com> wrote:
> [Please quote when replying]
>
> Adam Lassek wrote:
> > I'm trying to understand how the forms microformat is parsed into a
> > nested Hash.
>
> What do Rails forms have to do with microformats? And are you trying to
> understand the actual parsing code, or the result?
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> mar...@marnen.org
> --
> Posted viahttp://www.ruby-forum.com/.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment