On 4/24/07, Tim Pope <[EMAIL PROTECTED]> wrote:
> The disadvantage to this method is that "new" doesn't fit cleanly into
> the four CRUD actions.  This was accepted as a necessary compromise
> for interactive uses, but now it's creeping into the API as well.

No compromise needed. Restful controllers manage three broad resources
in a single package: the collection (GET+POST /foos as index and
create), its members (GET+PUT+DELETE /foos/123 as show, update, and
destroy), and the new instance (GET /foo/new as new). So 'new' is a
read-only singleton resource.

I like the feel of returning render :xml => @foo as a 'prototype' for Ares.

jeremy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to