views:

50

answers:

2

I was looking at the Golden 7 Restful Actions viz.

Index New Delete Update Create Edit Show

Now, I'm totally confused and not really sure if all of these are exclusive? For instance, what is the difference between Index and Show, New and Create or Edit and Update? Are they essentially the same? Does that mean, we have just 4 golden actions and not 7?

+1  A: 

You may take a look at the Simply Restful Routing for an example of the different restful actions and verbs.

Darin Dimitrov
That was a pretty good resource Darin. I think I'm slowly getting it. Thanks!
Praveen
+2  A: 

The reason you are confused is because it is a terribly bad way of trying to implement REST. To use the term RESTful action to describe anything other than GET, PUT, POST, DELETE, etc when using HTTP is just nasty.

Even some of the Rails guys are realizing that the seven actions were a bad idea.

Darrel Miller
Waheed Sayed
Based on the golden seven, I started to organize my controllers and actions keeping in mind all my resources. Oh my, I feel so challenged right now. It just feels that I'm trying to squeeze this square peg into this hole just for the heck of it :D I'm worried about ending up with this big fat controller that tries to serve these infinite number of actions just coz I was made to think in terms of 'resources'. Sigh...
Praveen