Home jquery-ui-rails breaks rails test
Reply: 1

jquery-ui-rails breaks rails test

PascalTurbo
1#
PascalTurbo Published in 2018-01-12 21:04:30Z

I've added jquery-ui-rails to my project and it's working perfectly in the browser.

But when running tests they fail with an template error.

ActionView::Template::Error: File to import not found or unreadable: jquery-ui/datepicker.

Gemfile

gem 'jquery-rails', '~> 4.3'
gem 'jquery-ui-rails', '~> 6.0'

application.js

//= require jquery3
//= require jquery-ui/widgets/datepicker

application.scss

@import "jquery-ui/datepicker";
@import "jquery-ui/core";
@import "jquery-ui/theme";
fool-dev
2#
fool-dev Reply to 2018-01-14 05:10:13Z

The newest version of jquery-ui structured the file library

Try the below

@import "jquery-ui/widgets/datepicker";

Hope to help

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.350188 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO