1.

Resource Routing & Difference Between Member Routes And Collection Routes ?

Answer»

Resource routing ALLOWS you to quickly declare all of the common routes for a given resourceful controller. Instead of declaring separate routes for your index, show, new, edit, CREATE, update and destroy actions, a resourceful route DECLARES them in a single line of code.

Browsers request pages from Rails by making a request for a URL using a specific HTTP method, such as GET, POST, PUT and DELETE. Each method is a request to perform an OPERATION on the resource. A resource route maps a number of related requests to actions in a single controller.

Resource routing allows you to quickly declare all of the common routes for a given resourceful controller. Instead of declaring separate routes for your index, show, new, edit, create, update and destroy actions, a resourceful route declares them in a single line of code.

Browsers request pages from Rails by making a request for a URL using a specific HTTP method, such as GET, POST, PUT and DELETE. Each method is a request to perform an operation on the resource. A resource route maps a number of related requests to actions in a single controller.



Discussion

No Comment Found