[Rails] Re: Where is the Rails-way to place view that is not related to any specific controller?
However, when you try to include a partial render from a layout and it
is missing you can see that the paths where it search for the view are
views/application and views/<controller>.
So I assume that:
shared partial renders should go into views/applications
controller specific partial renders should go into views/<controller>
both should be named with a starting underscore and called without it
however if you wish to render the partial view from another controller
you have to select the path calling render <controller>/<partial_view>
At least that's how I'm going to do from now on ^^
--
Posted via http://www.ruby-forum.com/.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home