0/59

Ruby On Rails

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"}`

Q 1 / 59

Press C to Clear

Press R to Reset

Press N or Enter to Next or Check answer

Press 1,2,3, ... to toggle answers