I want to make a navigation menu with the titles of published pages. In the user manual I can see the format which I should use in the layout:
{{ cms:partial:path/to/partial }}
So I create a partial with a name _navmenu.html.haml
and place it in app/views/
directory. I think I should refer to this partial like this :
{{ cms:partial:app/views/navmenu}}
but I only see the error message of the ActionController:
Missing partial app/views/navbar with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee, :haml]}. Searched in:
* "/Users/qumara/mexicansofa/app/views"
It seems it searches in app/views
directory. I suppose partial in Comfy is referred by Rails conventions (with underscore prefix).
The stack: Ruby on Rails 3.2.14, comfortable-mexican-sofa 1.8.4 .
How should I refer (from the layout) to a partial in Comfortable Mexican Sofa?
Any help is appreciated.
It knows its already in app/views
so simply {{ cms:partial:navmenu }}
should work
If you have it in a folder within app/views
, app/views/admin/navmenu
for example it would be {{ cms:partial:admin/navmenu }}
Edit: For people that haven't read the comments, the answer is to put the file you are trying to render inside a folder within views
then it works.