Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveAdmin can't find jquery.ui.datepicker

ActionView::Template::Error (couldn't find file 'jquery.ui.datepicker'
  (in /home/raimat/webapps/keita/gems/bundler/gems/active_admin-2ae0a9e09bf9/app/assets/javascripts/active_admin/base.js.coffee:2)):
     7:   <%= stylesheet_link_tag params[:controller] %>
     8:   <link rel='stylesheet' href='/assets/typicons.min.css'/>
     9:
    10:   <%= javascript_include_tag "application" %>
    11:   <%= javascript_include_tag 'ckeditor/ckeditor.js' %>
    12:
    13:
  app/views/layouts/application.html.erb:10:in `_app_views_layouts_application_html_erb__42414357695359850_50936120'
  app/controllers/home_controller.rb:15:in `index'

This only occurs when I try to deploy my app at webfaction (Both Production and development). I've tried it on two different local machines, and it goes as smooth as it should. Edit: I removed Gemfile.lock on my local machine, and now I get this error there as well.

Tried the solutions found at rails active admin deployment : couldn't find file 'jquery-ui' but I still stand with the bug.

I use Rails 4.0.2 ActiveAdmin at master branch I need jquery-rails > ~> 3.1.0 for another gem

Tried adding gem jquery-rails-ui, but still nothing..

Ideas?

like image 235
Dan Andreasson Avatar asked Feb 12 '23 14:02

Dan Andreasson


1 Answers

I was running into the same problem. Noticed there was an upgrade to jquery-ui-rails a couple of days ago (July 3, 2014) so I downgraded to the previous version and that fixed my problems

In gemfile

gem 'jquery-ui-rails', '~> 4.2.1'

In application.js

//= require jquery-ui
like image 190
mdenomy Avatar answered Feb 15 '23 10:02

mdenomy