I know this is a stupid question, but I can''t seem to find the answer. In my app/views/layouts, I had tasks.html.erb (and others) That worked great. I added application.html.erb, but NOTHING is using it. What I want is application.html.erb to yield to tasks.html.erb to yield to individual pages. Thanks in advance, Alan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> I know this is a stupid question, but I can''t seem to find the answer. > > In my app/views/layouts, I had tasks.html.erb (and others) That worked great. > > I added application.html.erb, but NOTHING is using it. > > What I want is application.html.erb to yield to tasks.html.erb to > yield to individual pages.The application.html.erb layout is simply the default one used if none of your controllers specify another one to use instead. They don''t nest like that (unless something changed in rails 2.x that I''ve completely missed). However the following may help. http://agilewebdevelopment.com/plugins/nested_layouts -philip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
That plugin looks like EXACTLY what I want!!! Thanks!!! --Alan On Thu, Mar 27, 2008 at 10:59 PM, Philip Hallstrom <philip-LSG90OXdqQE@public.gmane.org> wrote:> > > > I know this is a stupid question, but I can''t seem to find the answer. > > > > In my app/views/layouts, I had tasks.html.erb (and others) That worked great. > > > > I added application.html.erb, but NOTHING is using it. > > > > What I want is application.html.erb to yield to tasks.html.erb to > > yield to individual pages. > > The application.html.erb layout is simply the default one used if none of > your controllers specify another one to use instead. They don''t nest like > that (unless something changed in rails 2.x that I''ve completely missed). > > However the following may help. > > http://agilewebdevelopment.com/plugins/nested_layouts > > -philip > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---