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-Koser
http://www.marnen.org
[email protected]
Sent from my iPhone
--
Posted via http://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.