Hello,
I need to have multiple layouts for PA and templates. I am using the default layout and templates for one usage, and I created another layout with different templates for my other usage.
<%= render_activities(@activities, :layout => '/activities/layout') %>
renders my activities with the correct (i.e. custom) layout but uses the default templates (in /views/public_activity/).
<%= render_activities(@activities, :root => '/activities/activity-log') %>
renders my activities with the default layout but uses my custom templates (in /views/activities/activity-log/).
However, I cannot combine both the root template and root layout :
<%= render_activities(@activities, :layout => 'layouts/activity', :root => '/activities/activity-log') %>
renders the correct layout but ignores my custom templates.
Am I using the wrong syntax ?
Thanks