I was wondering if anyone knew how to render a .haml template from a folder within the views folder. My directory setup is:
-Views (Folder)
-Get_Started (Folder)
-step_1.haml
-index.haml
I would like to render step_1.haml but when i try:
haml :get_started/step_1
it doesn't work, I get a blank page. Any suggestions? I could have sworn i've seen how to do this somewhere but i cannot remember where.
Try with
haml :'get_started/step_1'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With