Fresh-jquery
Just got some ideas from zurb-foundation gem
and fetched javascript files from http://cdnjs.com
and made jquery available in any rails project,
or even just project with sprockets support.
How to
Use it with rails
-
gem 'fresh-jquery'in yourGemfile -
//= require jqueryor//= require jquery.minin yourapplication.js - Have your jquery as you like
Use it with sinatra
-
Gemfilein your sinatra project:
source "https://rubygems.org"
gem "sinatra"
gem "sinatra-asset-pipeline"
gem "sprockets" # This line should go before asset gems!
gem "fresh-jquery" # The gem you're trying to use- In your sinatra application:
Bundler.require
require "sinatra/asset_pipeline"
require "erb"
register Sinatra::AssetPipeline
get "/" do
erb :index
end- Run application and have
/assets/jquery.js!