Layout rendering problem

Hello,

I have this directory layout.

app/views

  • 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 ?

Roelof

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.

Op maandag 14 juli 2014 19:43:31 UTC+2 schreef Eric S.: