I have tried multiple answers on stackoverflow and non seem to work, but here is the question anyways.
Im trying to use active-admin with my Rails 5 application.
In my gem file I have:
gem 'activeadmin', git: 'https://github.com/activeadmin/activeadmin'
gem 'inherited_resources', git: 'https://github.com/activeadmin/inherited_resources'
gem 'jquery-ui-rails'
In my application.js I have:
//= require jquery
//= require bootstrap-sprockets
//= require ckeditor/init
//= require jquery-ui
//= require jquery-ui/datepicker
//= require jquery_ujs
//= require turbolinks
//= require_tree .
In my application.scss I have:
@import "jquery-ui";
@import "jquery-ui/datepicker";
Despite following all the instructions as stated I'm getting an error:
couldn't find file 'jquery-ui/datepicker' with type 'application/javascript
and the error seems to be happening here:
//= require jquery-ui/datepicker
EDIT
I have a redirect in the action_controller.rb
def after_sign_in_path_for(user)
home_mypath_path
end
Which I think is interfering with the login.