That's not all there is to it. There is also a convention using
parentheses to combine parameters together.

On Aug 25, 12:26 pm, Marnen Laibow-Koser <[email protected]> wrote:
> Adam Lassek wrote:
> > Using "person[address][street_address]" to denote a nested Hash
> > structure is semantic,
>
> In what respect?  It's abusing a particular form of HTTP parameter name,
> true, but that's about it.
>
> Rails' reservation of HTTP parameter names "controller" and "action"
> might be considered semantic, but I don't think the brackets are.
>
> > 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.
>
> Very simple.  The brackets act like hash subscripts.  Hashes are
> constructed so to make this possible.  That's all there is to it AFAIK.
>
>
>
> > I'm sorry if my choice of the word "microformat" offends you so badly
> > in this context,
>
> It doesn't offend me -- it's just inaccurate.
>
> > but then you have yet to offer an alternative.
>
> I don't think there is a useful word other than "mapping" or something
> like that.
>
> > And
> > other people on this list have understood what I meant. So maybe it's
> > not worth arguing about.
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
> --
> 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