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 B.:
Check this out :
Cheer,
Reinhart
I tried
<%= render :template => “…/things/edit” %>
But that didn’t seem to do anything…
On Apr 21, 11:22 pm, Visit Indonesia 2008 <rails-mailing-l…@andreas-
David B. 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…
–
Phlip
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs