[Rails] Re: Where is the Rails-way to place view that is not related to any specific controller?

2011-08-10 Thread Frederick Cheung
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

[Rails] Re: Where is the Rails-way to place view that is not related to any specific controller?

2011-08-10 Thread Ezequiel Schwartzman
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

[Rails] Re: Where is the Rails-way to place view that is not related to any specific controller?

2011-08-10 Thread 7stud --
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

[Rails] Re: Where is the Rails-way to place view that is not related to any specific controller?

2011-08-10 Thread Ezequiel Schwartzman
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 ^^

[Rails] Re: Where is the Rails-way to place view that is not related to any specific controller?

2011-08-10 Thread Ezequiel Schwartzman
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