Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with customising themes_dir using initializer file. #74

Open
vishakhasawant opened this issue Oct 16, 2013 · 0 comments
Open

Issue with customising themes_dir using initializer file. #74

vishakhasawant opened this issue Oct 16, 2013 · 0 comments

Comments

@vishakhasawant
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant