[Rails] Re: Passing blocks through render('partialname')

2011-08-01 Thread 7stud --
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

[Rails] Re: Passing blocks through render('partialname')

2011-08-01 Thread Brent
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 %> >   <%=

[Rails] Re: Passing blocks through render('partialname')

2011-07-29 Thread 7stud --
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 %>

[Rails] Re: Passing blocks through render('partialname')

2011-07-29 Thread Brent
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

[Rails] Re: Passing blocks through render('partialname')

2011-07-28 Thread Andrew Skegg
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