Which of the following is the correct way to know the Rails root directory path?
Correct Answer: Rails.root
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
Best way to create primary key as a string field instead of integer in rails.
What is the recommended Rails way to iterate over records for display in a view?
where we use attr_accessor and attr_accessible in rails ?
Given the following code, where is the 'party!' method available? module PartyAnimal def self.party! puts 'Hard! Better! Faster! Stronger!' end end class Person include PartyAnimal end
Which part of the MVC stack does ERB or HAML typically participate in?
Given below are two statements regarding the Ruby programming language: Statement X: 'redo' restarts an iteration of the most internal loop, without checking loop condition. Statement Y: 'retry' restarts the invocation of an iterator call. Also, arguments to the iterator are re-evaluated. Which of the following options is correct?
Which of the following commands will clear out sample users from the development database?
Is an AJAX call synchronous or asynchronous?
Which of the following assertions are used in testing views?
What is green-threading?