Hi, If I'm in the view of users_controller's index action (index.html.erb).
Can I do something like this?
<%= render :layout=>false, :controller => 'favorites', :action => :show, :id => 1 %>
That would be awesome.
Thank you, David
Hi, If I'm in the view of users_controller's index action (index.html.erb).
Can I do something like this?
<%= render :layout=>false, :controller => 'favorites', :action => :show, :id => 1 %>
That would be awesome.
Thank you, David
David Beckwith: Check this out :
Cheer, Reinhart
I tried
<%= render :template => "../things/edit" %>
But that didn't seem to do anything....
TRY IT <%= render :template => "things/edit" %>
Reinhart http://teapoci.blogspot.com
David Beckwith wrote:
<%= render :layout=>false, :controller => 'favorites', :action => :show, :id => 1 %>
What's wrong with render :partial => 'show', where the show action calls a page that renders the same partial?
If both actions require the same controller setup code, put it in a helper...