Ruby On Rails Interview Questions and Answers
Ques. HOW CAN YOU SHOW SEARCH USER FRIENDLY URLS INSTEAD OF USING ONLY NUMERIC IDS in Ruby on Rails?Ans.The simplest way to do this is to use the gem FriendlyID. It gives you the ability to specify a friendly URL for pages so that instead of the standard page URLs like: You can build pages such as: http://mysite.com/page/my-awesome-page-about-articles-and-content |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Ruby On Rails?
- Why Ruby on Rails?
- Explain how (almost) everything is an object in Ruby.
- What are Gems and which are some of your favorites?
- How would you declare and use a constructor in Ruby?