Rails 3 render action from another controller

Try to render template:

<%= render :template => "controller/index" %> 

Or file:

<%= render :template => "#{Rails.root}/app/controllers/controller/index" %> 

And I believe you should render it through controller, as far as it is more convenient:

def your_action
  ...
  render :action => :index
end

Leave a Comment