1
votes

Since jquery is packaged with Rails 3.0, I'm using the jquery-ui-rails gem to get jquery-ui.

Looks like jquery_ujs is not packaged with Rails (or jquery-ui-rails). And I can't independently include jquery_ujs gem (there is no such gem, it is packaged with the jquery-rails gem ... which specifically states that I don't need this gem if I'm on Rails 3.0+).

I try to require jquery_ujs in my application.js but obviously it's not found.

So how do I get jquery_ujs?!

1

1 Answers

2
votes

If you're including the jquery-rails gem in your Gemfile, then jquery-ujs is already installed. Simply make sure it's added to your application.js manifest like so:

//= require jquery
//= require jquery-ujs

And if you also have jquery-ui-rails, you can then add a manifest entry for that:

//= require jquery.ui.all