Name two ways to indicate a "block" in Rails

Question:Name two ways to indicate a "block" in Rails

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

2.The request hits the rails router which dispatches to the proper controller action. In this case, it goes to the index action in the Users controller.

3. Curly braces or do..end. It's best to use curly braces for short one-line blocks and the do..end for mult-iline blocks.

4.When the order matters, use an array.


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!