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

Custom JavaScript problem #343

Closed
kzazarashvili opened this issue Dec 15, 2015 · 2 comments
Closed

Custom JavaScript problem #343

kzazarashvili opened this issue Dec 15, 2015 · 2 comments

Comments

@kzazarashvili
Copy link

I tried to add custom JavaScript to the view that the gem generated for me, but it didn't work. The gem didn't load the assets from my application. Is there any solution for such situation?

@c-lliope
Copy link
Contributor

@kzazarashvili, which file did you try to add your javascript to?

We just added a new generator, rails generate administrate:assets:javascripts, in #326. If you update your Gemfile to use:

gem "administrate", github: "thoughtbot/administrate"

...then you should have access to that generator. After you run it, Administrate should pick up any javascript you add to app/assets/javascripts/administrate/application.js.

@kzazarashvili
Copy link
Author

Thank you very much! it worked.

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