我使用的寶石「HAML」和「HAML護欄」在我的Rails應用程序,我有這樣的文件夾結構Rails的不可能呈現諧音
-views
-layouts
-public
-layout.html.haml
-_header.html.haml
-_footer.html.haml
而且我wanto呈現佈局_header和_footer .html.haml使用此代碼:
= render 'layouts/public/_header'
.container= yield
= render 'layouts/public/_footer'
但軌道提出了一個MissingTemplate錯誤,但_header和_footer存在...
我該如何解決?