Rendering and action controller in a view

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 :slight_smile:

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-

TRY IT
<%= render :template => “things/edit” %>

Reinhart
http://teapoci.blogspot.com

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