Darn you know what it was.. I was doing render 'partialname'...
instead of render :layout=>'partialname'

Thanks! BTW anyone know what the difference is there? ^

On Jul 29, 10:37 am, 7stud -- <[email protected]> wrote:
> This works for me:
>
> views/layouts/application.html.erb:
>
> <!DOCTYPE html>
> <html>
> <head>
>   <title><%= @title %></title>
>   <%= csrf_meta_tag %>
> </head>
> <body>
>
> <%= yield %>
>
> </body>
> </html>
>
> views/users/new.html.erb:
>
> <h1>Users#new</h1>
> <p>Find me in app/views/users/new.html.erb</p>
>
> <%= render :layout => 'shared/awesome', :locals => {:greeting =>
> 'hello'} do %>
>   <div>world</div>
> <% end %>
>
> views/shared/_awesome.html.erb:
>
> <div><%= greeting %></div>
> <%= yield %>
>
> http://localhost:3000/users/new
> View Source:
>
> <!DOCTYPE html>
> <html>
> <head>
>   <title>Sign up</title>
>   <meta name="csrf-param" content="authenticity_token"/>
> <meta name="csrf-token"
> content="3S4d6FpN0hkzvwCHEbNG/OR34UBwqOTlhDtwL5VIXd4="/>
> </head>
> <body>
>
> <h1>Users#new</h1>
> <p>Find me in app/views/users/new.html.erb</p>
> <div>hello</div>
>
>   <div>world</div>
>
> </body>
> </html>
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to