It seems that there are 2 different view_paths used:
- The class one.. (is the only one used on layouts)
- The instance one.. (is used on other views)
So when theming your whole application you have to do something like:
self.class.prepend_view_path("#{RAILS_ROOT}/themes/#
{self.current_theme}/views") # This is for the layouts :S
self.prepend_view_path("#{RAILS_ROOT}/themes/#
{self.class.current_theme}/views") # This is for the actions
This probably isn''t thread safe, etc..etc..
But WHY is Rails using 2 DIFFERENT view_paths ??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---