0 votes
in Ruby by

How would you render a view using a different layout in an ERB HTML view?

a. <% render 'view_mobile' %>

b. <% render 'view', use_layout: 'mobile' %>

c. <% render 'view', layout: 'mobile' %>

d. <% render_with_layout 'view', 'mobile' %>

1 Answer

0 votes
by

How would you render a view using a different layout in an ERB HTML view?

Correct answer is :-  <% render 'view', layout: 'mobile' %>

Related questions

0 votes
asked Aug 26, 2022 in Ruby by Robin
0 votes
asked Aug 26, 2022 in Ruby by Robin
...