0 votes
in Ruby by

Which choice is an incorrect way to render a partial?

a. <%= render(:partial => 'shared/product') %>

b. <%= render('shared/product', :collection => @products) %>

c. <%= render(template: 'shared/product', with: @products) %>

d. <%= render('shared/product', locals: { product: @product }) %>

1 Answer

0 votes
by

Which choice is an incorrect way to render a partial?

Correct answer is :-  <%= render(template: 'shared/product', with: @products) %>

Related questions

0 votes
asked Sep 3, 2022 in Ruby by DavidAnderson
0 votes
asked Sep 2, 2022 in Ruby by DavidAnderson
...