On 25 August 2010 05:16, Marnen Laibow-Koser <[email protected]> wrote:
> Adam Lassek wrote:
>> I welcome an alternative term if that would be less confusing, but the
>> fact is this convention exists and it's not a part of any
>> specification.
>
> *What* convention? What do you think goes beyond the HTTP spec here?
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, it is an
overlying convention using field names to indicate the type and
structure of the data. In that sense it is akin to the microformat
concept.
Colin
--
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.