Using "person[address][street_address]" to denote a nested Hash
structure is semantic, and it is not part of the spec. you might think
it trivial, but not all frameworks behave in this way. So it is useful
to note that this convention exists and explain its rules. Agreed?
That's all I'm asking after here.

I'm sorry if my choice of the word "microformat" offends you so badly
in this context, but then you have yet to offer an alternative. And
other people on this list have understood what I meant. So maybe it's
not worth arguing about.

On Aug 25, 7:00 am, Marnen Laibow-Koser <[email protected]> wrote:
> Colin Law wrote:
>
> [...]
>
> > I think I can see what the OP is getting at here, and do have some
> > sympathy with his point of view.  The rails convention is that, for
> > example, an input field with the name
> > person[address][street_address]
> > is used to indicate that a hash of the form
> > { :person => { :address => { :street_address => "" } } }
> > should be posted and can hence be used by the controller to build the
> > appropriate data.   That is not part of the HTTP spec,
>
> I suppose it isn't.  But it's such a trivial extension that it hardly
> bears a second glance.  (I seem to recall that PHP does the same thing.)
>
> > it is an
> > overlying convention using field names to indicate the type and
> > structure of the data.  
>
> In a sense, that's *always* what field names do.
>
> > In that sense it is akin to the microformat
> > concept.
>
> That I do not agree with at all.  I'm trying to see the similarity, and
> -- past the most trivial level -- I do not.
>
>
>
> > Colin
>
> Best,
> -- 
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
>
> Sent from my iPhone
> --
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to