What''s the difference between create and new, edit and update? Or, a link to a good explanation of the differrence. (I read David Goodlad''s post without much clarity on these last oddball URLS.) Thanks, -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com austin.govella-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Sep 26, 2006, at 9:15 PM, Austin Govella wrote:> What''s the difference between create and new, edit and update? > > Or, a link to a good explanation of the differrence. (I read David > Goodlad''s post without much clarity on these last oddball URLS.)new and edit are not core CRUD actions. They don''t make changes to the resources, but are usually other ways of viewing the data presented by show (retrieved with GET). In most situations GET /resources;new and GET /resources/1;edit would return a form for people to edit and then POST to create or PUT to update. James. -- James Stewart : Freelance Web Developer Work : http://jystewart.net Play : http://james.anthropiccollective.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 9/27/06, Austin Govella <austin.govella-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > What''s the difference between create and new, edit and update? > > Or, a link to a good explanation of the differrence. (I read David > Goodlad''s post without much clarity on these last oddball URLS.)The difference as I understand it is that new and edit, are links to the resource, with a different point of view. That is, I want to look at thing at URL, with a view to editing it. Or, I want to add a new thing to the collection at URL. New and edit then provide the input (HTML form) for entering the data required to perform the action on the resource identified by the URL. The Create and update are then the actions that take the data, and actually do some CRUD with it. I would be more than pleased to get some further clarity myself on this though, it''s pretty new and I''m only just starting to get my head around it. Sorry I havn''t found anything that really spells it out yet that I can link to. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 9/26/06, James Stewart <jystewart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sep 26, 2006, at 9:15 PM, Austin Govella wrote: > GET /resources;new > > and > > GET /resources/1;edit > > would return a form for people to edit and then POST to create or PUT to > update.So... these urls display the forms and the forms post to the proper REST urls, create and update, repectively. Right? -- Austin Govella Thinking & Making: IA, UX, and IxD http://thinkingandmaking.com austin.govella-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Sep 26, 2006, at 9:36 PM, Austin Govella wrote:> On 9/26/06, James Stewart <jystewart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On Sep 26, 2006, at 9:15 PM, Austin Govella wrote: >> GET /resources;new >> >> and >> >> GET /resources/1;edit >> >> would return a form for people to edit and then POST to create or >> PUT to >> update. > > So... these urls display the forms and the forms post to the proper > REST urls, create and update, repectively. Right?Yes, so long as you set up the form actions correctly! James. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---