Skip to content

badie/jquery-mobile-rails

This branch is 2 commits ahead of, 58 commits behind dmarkow/jquery-mobile-rails:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Afolabi Badmos
Dec 9, 2011
0074afe · Dec 9, 2011

History

19 Commits
Nov 18, 2011
Sep 15, 2011
Dec 9, 2011
Sep 14, 2011
Sep 14, 2011
Nov 18, 2011
Sep 14, 2011
Nov 18, 2011
Sep 15, 2011
Sep 15, 2011

Repository files navigation

Jquery Mobile for Rails

This gem adds the JQuery Mobile files to the rails assets pipeline.

Gem’s JQuery Mobile Version

1.0

Instalation

Add this gem to your Gemfile:

gem 'jquery_mobile_rails'

This will include to your assets pipeline the jquery mobile’s javascripts, stylesheets and images.

Insert into your application.js manifest the jquery.mobile (or jquery.mobile.min)

//= require jquery
//= require jquery_ujs
//= require jquery.mobile

And the same to your application.css manifest:

*= require_self
*= require_tree .
*= require jquery.mobile

Use

I built this gem for using with the Mobylette gem, but it will work with your stand alone application, or with any other gem that filters your mobile requests.

For layouting using JQuery Mobile, and using all its features, I suggest your give a look at their documentation: jquerymobile.com/test/

Example

Inside the test/dummy there is a simple application using a very basic jquery mobile templating.

References

About

JQuery Mobile for Rails 3.1 assets pipeline

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 96.9%
  • JavaScript 3.1%