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) %>

...