On 31 Mar., 07:53, Zhao Yi
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> I use this code to render a partial:
>
> <%= render :partial=>''test'' %>
>
> The test is not located in the current controller. How can I point it to
> other place?
<%= render :partial => ''people/test'' %>
In this case, the name of the controller is PeopleController. See the
documentation for partial rendering:
http://api.rubyonrails.org/classes/ActionView/Partials.html
--
Best regards,
David Knorr
http://twitter.com/rubyguy
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---