Correct Answer: User.create(:name => 'david')
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 these does NOT correctly return the version of Ruby?
If you want the /person url to map to your dog controller and show method, what do you add to your routes?
What is the use of the 'defined?' method?
Which of these javascript frameworks became the default with the release of Rails 3.1?
What is the use of @ in Ruby?
Are instance variables set within a controller method accessible within a view?
Which ActiveRecord query prevents SQL injection?
Which choice includes standard REST HTTP verbs?
In Rails, which code would you use to define a route that handles both the PUT and PATCH REST HTTP verbs?
Which module can you use to encapsulate a cohesive chunk of functionality into a mixin?