rails.nerd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2010-Apr-24 05:07 UTC
multiple "view" directories to achieve rails "themes"
Hi I''d like to have various "themes" for my site that cannot be achieved by changing the CSS or anything else. So my directory structure might look like this: app \ views - \ users \ blogs - \ THEME2 - \ users \ blogs (where the two "users" directories contain all the erb or haml) With my controllers - is there a way to conditionally insert the "theme2" directory into the view path before the erb/haml gets searched for and rendered ????? Would be nice to no have to explicitly call render I''m using rails3 Any ideas? thanks! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
rails.nerd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2010-Apr-24 10:52 UTC
Re: multiple "view" directories to achieve rails "themes"
Maybe I just need to ask it this way: At the end of every action the "render" function is called automatically with no options (unless the programmer explicitly calls it). Any clues as to how I would override that method to modify the folder path for the "view" files? Any tips would be heaps appreciated thanks guys -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Apr-24 13:31 UTC
Re: multiple "view" directories to achieve rails "themes"
rails.nerd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> Maybe I just need to ask it this way: > > At the end of every action the "render" function is called > automatically with no options (unless the programmer explicitly calls > it). > > Any clues as to how I would override that method to modify the folder > path for the "view" files? > > Any tips would be heaps appreciatedYou might want to look at http://github.com/cavneb/themes .> > thanks guysBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.