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

Missing assets when using as a plugin dependency #43

Open
bishma-stornelli opened this issue Apr 18, 2013 · 1 comment
Open

Missing assets when using as a plugin dependency #43

bishma-stornelli opened this issue Apr 18, 2013 · 1 comment

Comments

@bishma-stornelli
Copy link

I'm developing plugins for Redmine and I'm trying to use this gem. My goal is to include it without modifying any code of the application (Redmine).

I've add the gem dependency in my Gemfile, the migration as a plugin migration and I've patch the WillFilter::Config class to load config from /plugins/.../config/.... The mount WillFilter::Engine => "/will_filter" has been added to the plugin's routes.

When I run rake routes I can see all will_filter's routes, the will_filter_tag is being displayed BUT I'm getting 404 on all will_filter's assets.

Is there any way to manually precompile them to the public directory or something that works for me? I'm just missing that.

@engunneer
Copy link

I had something similar in my rails app. I added them to my asset pipeline, and looking at the compile css, I saw the will_filter parts (wf_ prefix). I ended up having to edit will_filter's _scripts.html.erb to remove all the asset links, since the CSS was available, just not in that location.

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

2 participants