Sha256: 72d727ad7d451c3d6b36b2288ca4c7edfc5861c48d4b9a192cf657fe7da0d89d
Contents?: true
Size: 1.08 KB
Versions: 8
Compression:
Stored size: 1.08 KB
Contents
recipe :javascript_framework do description 'This will add javascript framework into your app' after :forms question "Please choose JS framework you prefer to use" do # See https://github.com/rails/jquery-rails for details answer "JQuery with Jquery UI", :default => true do gem "jquery-rails" gsub_file 'app/assets/javascripts/application.js', '//= require_tree .' do <<-CONTENT.gsub(/^ {10}/, '') //= require jquery //= require jquery-ui //= require jquery_ujs //= require_tree . CONTENT end store :javascript_framework, :jquery end # See https://github.com/neonlex/mootools-rails for details answer "Mootools Core with More" do gem 'mootools-rails' gsub_file 'app/assets/javascripts/application.js', '//= require_tree .' do <<-CONTENT.gsub(/^ {10}/, '') //= require mootools //= require mootools-more //= require mootools_ujs //= require_tree . CONTENT end store :javascript_framework, :mootools end end end
Version data entries
8 entries across 8 versions & 1 rubygems