Tiago Scolari

bits for fun

JQuery-Mobile for Rails 3.1 Gem

2011-09-14

I’ve created a very simple gem that includes the jquery mobile files to Rails’ assets pipeline. To install, just add to your Gemfile:

gem 'jquery_mobile_rails'

And require the javascript/css files in your manifests:

//= require jquery.mobile.min
*= require jquery.mobile.min

That’s it. No helpers, no methods, only the files in your application assets pipeline. For more information check the github repo.