On Aug 10, 4:20 pm, Ezequiel Schwartzman li...@ruby-forum.com wrote:
Well, I have a sidebar in a website that is rendered inside the main
layout. What I want to do is to put the sidebar in a separated file and
then call
= render :partial = sidebar.html.haml
Just to have them in separated
Frederick Cheung wrote in post #1015986:
On Aug 10, 4:20pm, Ezequiel Schwartzman li...@ruby-forum.com wrote:
In /app/views/application?
In /app/views/layout?
In a separated view folder?
I often have app/views/shared or things like that.
Fred
Thanks, I'll do that ^^
--
Posted via
Ruby on Rails 3 Tutorial puts them in the layouts directory, e.g.
layouts/_sidebar.html.erb, which are then inserted with:
% render 'layouts/sidebar' %
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
7stud -- wrote in post #1016015:
Ruby on Rails 3 Tutorial puts them in the layouts directory, e.g.
layouts/_sidebar.html.erb, which are then inserted into the application
layout with:
% render 'layouts/sidebar' %
That seems rational, since the scaffolding creates a _form element,
thanks ^^
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
5 matches
Mail list logo