Due to recent changes in the Sencha build chain requiring Sencha CMD (which I didn't get to run on my system), this gem is discontinued. Please use the Sencha provided tools to generate an application. If anyone has an idea how to do it, feel free to send a pull request :-)
This is a simple Rails asset pipeline gem packaging the Sencha Touch Framework (GPL version). It is loosely based on ext_rails_shim, but without any Rails integration besides making the assets available to the asset pipeline.
The currently bundled version is Sencha Touch 2.0.1.1 GPL
Add this line to your application's Gemfile:
gem 'sencha-touch2-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sencha-touch2-rails
Just include the desired theme css file
<%= stylesheet_include_tag 'sencha-touch2-rails/sencha-touch' %>
<%= stylesheet_include_tag 'sencha-touch2-rails/apple' %>
and JS file
<%= javascript_include_tag 'sencha-touch2-rails/sencha-touch-all' %>
Don't forget to add the chosen files to config.assets.precompile
config.assets.precompile << 'sencha-touch2-rails/sencha-touch.css'
config.assets.precompile << 'sencha-touch2-rails/apple.css'
config.assets.precompile << 'sencha-touch2-rails/sencha-touch-all.js'
Note: The sencha-touch-all*.js versions should be used, as dynamic class loading is incompatible with the asset pipeline.
You can fork this gem and run
TOUCH_DIR=/path/to/sencha-touch-2.x.x.x rake sencha-touch2-rails:install
to rebuild Sencha Touch, i.e. when you built your own theme.
GPLv3 like Sencha Touch.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request