Brent wrote in post #1014240:
> Darn you know what it was.. I was doing render 'partialname'...
> instead of render :layout=>'partialname'
>
Yah. That was the point of my post.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Gro
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 -- wrote:
> This works for me:
>
> views/layouts/application.html.erb:
>
>
>
>
> <%= @title %>
> <%=
This works for me:
views/layouts/application.html.erb:
<%= @title %>
<%= csrf_meta_tag %>
<%= yield %>
views/users/new.html.erb:
Users#new
Find me in app/views/users/new.html.erb
<%= render :layout => 'shared/awesome', :locals => {:greeting =>
'hello'} do %>
world
<% end %>
That's exactly what I tried. I've tried multiple variations too but I
can't seem to get it.
On Jul 28, 4:27 pm, Andrew Skegg wrote:
> Brent writes:
>
> > How can I capture the block that I pass through a partial. I want to
> > be able to do something like:
>
> > <%= render 'shared/partialname' d
Brent writes:
>
> How can I capture the block that I pass through a partial. I want to
> be able to do something like:
>
> <%= render 'shared/partialname' do %>
> Misc code / text
> <% end %>
>
> Then I want to display that block at a specific place in that partial.
> I could do this if I cr
5 matches
Mail list logo