- 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”, globals: {selected: “about”} %>

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

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

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

Posted Date:-2022-09-17 04:34:05


More MCQS Questions and answers

Search