- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
 When rendering a partial in a view, how would you pass local variables for rendering?

1. <%= render partial: “nav”, selected: “about”}%>

2.<%= render partial: “nav”, local_variables: {selected: “about”} %>

3.<%= render partial: “nav”, locals: {selected: “about”}

4.None of the above

Posted Date:-2022-09-17 03:18:57


More MCQS Questions and answers

Search