.What does the routes.rb file do with "get pages/home"?

Question:.What does the routes.rb file do with "get pages/home"?

1.When a request is made for, say, /pages/home, the Pages controller executes the code in the "home" action and then automatically renders the view corresponding to the action -- in this case, home.html.erb.

2.This maps requests for the URL /pages/home to the home action in the Pages controller.

3.When the order matters, use an array.

4.It's a test that simulates a browser accessing our application.


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!