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.

On Sunday, July 13, 2014 5:45:39 AM UTC-6, Roelof Wobben wrote:
>
> 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
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/fd91ae5a-7ddc-4638-8cdb-acf4119bf832%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to