Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Ruby On Rails Interview Questions and Answers

Ques. What is RESTFUL routing in Ruby on Rails?

Routing is fun. If you have ever dealt with IIS you will fall in love with RESTful routing. Here’s how it works. 

Say you want your users to have access to certain pages such as:




And, you want the right controller to get called.

And, you want the right view to get rendered.

All this is made possible with a single entry in the routes.rb file.

In Rails, a resourceful route provides a mapping between HTTP verbs and URLs to controller actions. By convention, each action also maps to particular CRUD operations in a database. The single entry in the routing file creates seven different routes in your application, all mapping to the Photos controller:



POST - /photos

GET -  /photos/:id

GET -  /photos/:id/edit

PUT - /photos/:id

DELETE - /photos/:id

Is it helpful? Yes No

Most helpful rated by users:

©2016 WithoutBook