0 votes
in Ruby by
In Rails, how would you cache a partial template that is rendered?

 a. render partial: ‘shared/menu’, cached: true

 b. render_with_cache partial: ‘shared/menu’

 c. render partial: ‘shared/menu’

 d. render partial: ‘shared/menu’, cached_with_variables: {}

1 Answer

0 votes
by

In Rails, how would you cache a partial template that is rendered?

 

 Correct answer is :-  render partial: ‘shared/menu’, cached: true

Related questions

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