Which of the following will change a Rails 3 app to run in production mode?
Correct Answer: rails s -e production
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Ruby On Rails Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Ruby On Rails MCQ Questions
Which of the following validations checks if a passed value is an enumeration and falls in the given range?
Which option will correctly show an image in the HTML ERB template in Rails?
Which of the following will return a User object when used with a model which deals with a table named User?
After executing the following code, what will the value of foo be? foo = 'bar' wom = Proc.new {|foo| foo = 'baz'} wom.call('pling')
Which of the following validations are supported by models?
If your controller gets an action that it will render a template for, and you need to add a flash notice to the page, you'd use:
Output of the following ? person1 = 'Tim' person2 = person1 person1[0] = 'J' puts person1 puts person2
You've got a form, and when the user submits invalid data, you simply show them an error page (no redirect). In the controller, to show the general error on the rendered page, you would add:
Counter caches can be used for:
Handling an AJAX request in controller, which of the following redirects to google?