Correct Answer: render js: "window.location = 'http://google.com'"
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
Counter caches can be used for:
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:
Output of the following ? person1 = 'Tim' person2 = person1 person1[0] = 'J' puts person1 puts person2
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:
Given code: ; module Wheeled; end ; class Vehicle; end ; class Car < Vehicle ; include Wheeled ; end ; What is the value of this expression: Car.new.kind_of? Wheeled
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 will return a User object when used with a model which deals with a table named User?
Which option will correctly show an image in the HTML ERB template in Rails?
Which of the following validations checks if a passed value is an enumeration and falls in the given range?
Which will change a Rails 3 app to run in production mode?