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?
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?
On 31 Mar., 07:53, Zhao Yi [email protected] 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 K.
http://twitter.com/rubyguy
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