MCQs > IT & Programming > Ruby On Rails > Following code snippet: def index render end The corresponding index.html.erb view is as following: Ruby on Rails sample application | <%=@title%> Which of the following options is correct?

Ruby On Rails MCQs

Consider the following code snippet:
def index
render
end
The corresponding index.html.erb view is as following:
<html>
<head>
<title>Ruby on Rails sample application | <%=@title%></title>
</head>
<body></body>
</html>
Which of the following options is correct?

Answer

Correct Answer: The application will give an exception as @title variable is not defined in the controller.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it