ruby on rails 3 - RefineryCMS Custom Layout Template works in host app but not with engine -
so followed refinery guide create custom layout template. switched page use new template in advanced options , worked charm.
then created new engine called clients , selected new template in advanced options of clients page, know defaults clients - index.html.erb.
but engine ignores template. why? know set correctly because works in page. difference page not part of refinery engine , clients page is. found this question , have tried setting engine's index.html.erb so
<% content_for :body %> <ul id="clients"> <% @things.each |t| %> <li> <%= link_to t.name, refinery.ts_t_path(t) %> </li> <% end %> </ul> <%= render :layout => 'layouts/client' %> to no avail. appreciated. thanks!
Comments
Post a Comment