layout rendering problem


I have this directory layout.


  • welcome
    ---- index.html.haml
    — layouts
    ------ login.html.haml

So to use the login.html.haml I thought this would work.

Contents of welcome/index.html

= render ‘layouts/login’

But still I see a template missing error message.

How to solve this ?


Because you have /layouts inside of /welcome it would need to be <%= render ‘welcome/layouts/login’ %> and I think you’ll also need an underscore before login.html.haml to make it _login.html.haml because it’s a partial.

Thanks, I will work on this idea.