# Distinctions between RESTful default actions

**URL:** <https://www.ruby-forum.com/t/distinctions-between-restful-default-actions/70150>\
**Category:** Rails\
**Created:** [September 27, 2006, 3:20am UTC](https://www.ruby-forum.com/t/distinctions-between-restful-default-actions/70150 "2006-09-27T03:20:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![agonyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@agonyou](https://www.ruby-forum.com/u/agonyou)\
**Post date:** [September 27, 2006, 3:20am UTC](https://www.ruby-forum.com/t/distinctions-between-restful-default-actions/70150/1 "2006-09-27T03:20:25Z")

</div>

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 G.  
Thinking & Making: IA, UX, and IxD  
[http://thinkingandmaking.com](http://thinkingandmaking.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![agonyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@agonyou](https://www.ruby-forum.com/u/agonyou)\
**Post date:** [September 27, 2006, 3:28am UTC](https://www.ruby-forum.com/t/distinctions-between-restful-default-actions/70150/2 "2006-09-27T03:28:25Z")

</div>

On Sep 26, 2006, at 9:15 PM, Austin G. 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 S. : Freelance Web D.  
Work : [http://jystewart.net](http://jystewart.net)  
Play : [http://james.anthropiccollective.org](http://james.anthropiccollective.org)

---

<div class="post-metadata">

**Author:** ![agonyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@agonyou](https://www.ruby-forum.com/u/agonyou)\
**Post date:** [September 27, 2006, 3:34am UTC](https://www.ruby-forum.com/t/distinctions-between-restful-default-actions/70150/3 "2006-09-27T03:34:25Z")

</div>

On 9/27/06, Austin G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![agonyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@agonyou](https://www.ruby-forum.com/u/agonyou)\
**Post date:** [September 27, 2006, 3:46am UTC](https://www.ruby-forum.com/t/distinctions-between-restful-default-actions/70150/4 "2006-09-27T03:46:26Z")

</div>

On Sep 26, 2006, at 9:36 PM, Austin G. wrote:

> > 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.

---

<div class="post-metadata">

**Author:** ![agonyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@agonyou](https://www.ruby-forum.com/u/agonyou)\
**Post date:** [September 27, 2006, 3:40am UTC](https://www.ruby-forum.com/t/distinctions-between-restful-default-actions/70150/5 "2006-09-27T03:40:26Z")

</div>

On 9/26/06, James S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On Sep 26, 2006, at 9:15 PM, Austin G. 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 G.  
Thinking & Making: IA, UX, and IxD  
[http://thinkingandmaking.com](http://thinkingandmaking.com)  
removed\_email\_address@domain.invalid
