themes_for_rails icon indicating copy to clipboard operation
themes_for_rails copied to clipboard

Issue with customising themes_dir using initializer file.

Open vishakhasawant opened this issue 11 years ago • 0 comments

Hi, I am using theme_for_rails (version 0.4) for last two years. Now due to changes in requirement I want support custom themes directory so I tried to use initializer which set the path as config.themes_dir = ":root/themes/domain1". But it is throwing below error

ActionController::RoutingError (No route matches {:controller=>"themes_for_rails/assets", :action=>"images", :theme=>"default", :asset=>"favicon.ico"}):
  app/helpers/url_helper.rb:12:in `url_for'
  app/views/layouts/_header.html.erb:10:in `_app_views_layouts__header_html_erb__941818133__643030468'
  app/views/layouts/default_home.html.erb:8:in `_app_views_layouts_default_home_html_erb___335053307__635225238'

Basically the earlier structure was pretty straightforward e.g. themes/theme1 themes/theme2 etc. Now I need slight modification in that e.g. themes/domain1/theme1 themes/domain1/theme2 themes/domain2/theme1 themes/domain2/theme2

Is it possible to support this structure? Am I going in wrong direction?

Thanks in Advance.

vishakhasawant avatar Oct 16 '13 08:10 vishakhasawant