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