Comments (9)
Curious.
The only technical difference between the css and js file is, vendor/assets/javascripts/jquery.ui.all.js
is a plain JS file, while vendor/assets/stylesheets/jquery.ui.all.css.erb
is preprocessed with Erb. Could that have something to do with it?
from jquery-ui-rails.
I've got the same problem. Also occuring when trying to load specific css, like the datepicker example from the README.
Update: It seems like this is more of an engine/asset pipeline issue. If I add jquery-ui-rails to the main app's Gemfile, everything works - but if I add it to the engine's Gemfile (or gemspec), the asset paths to the jquery-ui-rails gem are not added to the main app.
from jquery-ui-rails.
I think I've got it: In an engine, when using a gemspec, you need to require your dependencies, otherwise those dependencies' asset paths aren't added to the host app. I.e.:
module MyEngine
class Engine < Rails::Engine
require 'jquery-ui-rails'
end
end
Found via:
from jquery-ui-rails.
@xiaotian-bluekai did this solve it for you?
from jquery-ui-rails.
@MGPalmer solution worked for me.
Thanks
from jquery-ui-rails.
-
- I had the same problem and @MGPalmer's solution worked for me too.
Interestingly this only affected the css files. The javascript was working fine without this fix.
from jquery-ui-rails.
+1 thanks @MGPalmer
from jquery-ui-rails.
Very good (and very curious). I don't think this is something that needs fixing in jquery-ui-rails, is it? I'll go ahead and close this then.
from jquery-ui-rails.
Am still facing this issue, nothing worked for me so far :(
its indeed nothing to do with jquery-rails, as if I am commenting out @import 'jquery.ui.autocomplete';
I am getting similar error next for @import 'font-awesome';
Am using rails 4.0.9 with both main app and engine. my engine works fine with main app, but I am unable to rspec dummy app due to this error
from jquery-ui-rails.
Related Issues (20)
- couldn't find file 'jquery-ui/datepicker' with type 'application/javascript' HOT 1
- Clarifying README about Jquery Rails Conflict HOT 2
- RequireJS looking at the wrong path
- Impossible to load jquery-ui HOT 12
- Autocomplete dependency not resolved HOT 2
- Inconsistency between widget css/js locations
- Failed to load resource: ui-icons_222222_256x240.png HOT 1
- UI issue on Rails 5 (datepicker) HOT 1
- copy of assets files on the app required? HOT 1
- Nobody should use this because of security vulnerabilities HOT 1
- SyntaxError on ruby 2.5
- is there a way to get this to work with application.sass instead of application.css? HOT 1
- loads all the component files individually HOT 1
- .ui-helper-reset overrides .ui-widget-content
- CSS SyntaxError HOT 1
- SOOOO many questions (and don't use this gem) HOT 3
- Version 7.0.0 not published to rubygems.org HOT 14
- Please release the latest version HOT 6
- Possible typo in release title
- Version 7.0 is not on rubygems.org HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-ui-rails.