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

couldn't find file 'jquery-ui' #308

Closed
spheregenomics opened this issue May 30, 2013 · 12 comments
Closed

couldn't find file 'jquery-ui' #308

spheregenomics opened this issue May 30, 2013 · 12 comments

Comments

@spheregenomics
Copy link

Had some trouble getting this gem to work an existing app, so generated a basic rails app with a single model scaffold, then installed comfortable-mexican-sofa as per the instructions (added the gem and ran the installer). I still get the same error.

It cannot find jquery-ui in the gem for some reason.

Sprockets::FileNotFound in Cms_admin/sites#new

Showing /Users/sean/.rvm/gems/ruby-1.9.3-p327/gems/comfortable_mexican_sofa-1.8.1/app/views/layouts/cms_admin/_head.html.haml where line #8 raised:

couldn't find file 'jquery-ui'
(in /Users/sean/.rvm/gems/ruby-1.9.3-p327/gems/comfortable_mexican_sofa-1.8.1/app/assets/javascripts/comfortable_mexican_sofa/application.js.coffee:3)

@GBH
Copy link
Member

GBH commented May 30, 2013

I think https://github.com/indirect/jquery-rails is not packaging jquery-ui libraries anymore. Ugh.
Get this gem into your Gemfile and you should be good to go: https://github.com/joliss/jquery-ui-rails

I'll push out update to include it in the gemspec.

@spheregenomics
Copy link
Author

Thanks for your reply. I did try that earlier and just tried it again but it's not working. I added the gem 'jquery-ui-rails'
gem, then:
*= require jquery.ui.all to application.css
//= require jquery.ui.all to application.js

Someone also posted the same error on google groups today.

Sprockets::FileNotFound in Cms_admin/sites#new

Showing /Users/sean/.rvm/gems/ruby-1.9.3-p327/gems/comfortable_mexican_sofa-1.8.1/app/views/layouts/cms_admin/_head.html.haml where line #8 raised:

couldn't find file 'jquery-ui'
(in /Users/sean/.rvm/gems/ruby-1.9.3-p327/gems/comfortable_mexican_sofa-1.8.1/app/assets/javascripts/comfortable_mexican_sofa/application.js.coffee:3)
Extracted source (around line #8):

5:
6: = stylesheet_link_tag 'comfortable_mexican_sofa/application'
7: = stylesheet_link_tag 'comfortable_mexican_sofa/admin/application'
8: = javascript_include_tag 'comfortable_mexican_sofa/application'
9: = javascript_include_tag 'comfortable_mexican_sofa/admin/application'
10:
11: = yield :head

@GBH
Copy link
Member

GBH commented May 31, 2013

Trying to add jquery-ui-rails as a dependency but having issues. For now just make sure that you require gem 'jquery-rails', '< 3.0.0'

@GBH
Copy link
Member

GBH commented May 31, 2013

Nevermind. Grab 1.8.2. Should be working.

@GBH GBH closed this as completed May 31, 2013
@spheregenomics
Copy link
Author

Yep that fixed it. Thanks a lot for the quick update!

@JohnSmall
Copy link

Weird. I have this exact problem in new site I've generated. I'm using 1.11.2. I have another site also using 1.11.2 that's running perfectly OK. So I've no idea what the cause is or how to fix it.

@JohnSmall
Copy link

Mmm, I went right back to the start and created a brand new project and it's definitely not working with a clean install. I'll re-raise this ticket.

@gretel
Copy link
Contributor

gretel commented Jul 5, 2014

seems like a (previous) rake of assets:precompile does not necessarily remove the existing assets. so a updated bundle does not fail, while a new one (= no existing assets) does.

@rickapichairuk
Copy link

I think that this is related to this issue:

activeadmin/activeadmin@7b9ad75

@vitkoz
Copy link

vitkoz commented Aug 22, 2014

Ruby 2.1.2, rails 4.1.4 - can't get it t work with the same error as above.

@sajoku
Copy link

sajoku commented Aug 28, 2014

@vitkoz Issue #485 has a workaround.

@marcamillion
Copy link

marcamillion commented Mar 26, 2019

I am having this same issue too with gem version 1.8.5.

Edit 1: @sajoku that workaround worked for me. Thanks much!

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

8 participants