MCQs > IT & Programming > Ruby On Rails > Consider the following information for a User view: user_path named route with value '/users/' @user = 1 Now, consider the following code in the HTML erb template: <%= link_to user_path(@user), 'Angel' %> What will be the HTML output of this code?

Ruby On Rails MCQs

Consider the following information for a User view:
user_path named route with value "/users/"
@user = 1
Now, consider the following code in the HTML erb template:
<%= link_to user_path(@user), "Angel" %>
What will be the HTML output of this code?

Answer

Correct Answer: a href='/users/1'>Angel</a

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