Hi,From within an action called manager within a controller called
storedorders, I want to render to the view for the manger action of
controller orders.

It really seems like the following syntax should work:

(within the StoredordersController manager method...)

    respond_to do |format|
       format.html {render :controller => 'orders', :action => 'manager'}
       # format.xml { head :ok }
     end

But I get the following message:

"Template is missing
Missing template storedorders/manager.erb in view path app/views"

Why is it even looking when I told it to render a different view?



This however works:
    respond_to do |format|
       format.html {render 'orders/manager'}
       #  format.xml  { head :ok }
     end

It really seems like either syntax should be valid. What am I missing?
Thanks,
Tim

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to