1. Which of the following will return a User object when used with a model which deals with a table named User? Answers: • User.find 2. In the case of Rails application performance optimization, select all valid ways to do assets compilation: Answers: • Running the rake task with the assets:precompile parameter when CSS and JavaScript files are updated. 3. What is the best way to get the current request URL in Rails? Answers: • request.url 4. How can a value be stored so that it's shared across an entire request (i.e. make it accessible in controllers, views and models)? Answers: • Create a Singleton and store it in a class variable. 5. Which of the following commands adds the data model info to the model file? Answers: • generate model 6. Which of the following HTML template languages are supported by Ruby? Answers: • Embedded Ruby ...
SeoSandesh provides knowledgeable update for seo , news , trends , results , hot job, bing advertising, technology news, internet marketing , facebook marketing, google update, digital marketing etc.