0.0
No commit activity in last 3 years
No release in over 3 years
jQuery assets for rails or sprocket project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

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

  1. gem 'fresh-jquery' in your Gemfile
  2. //= require jquery or //= require jquery.min in your application.js
  3. Have your jquery as you like

Use it with sinatra

  1. Gemfile in 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
  1. In your sinatra application:
Bundler.require

require "sinatra/asset_pipeline"
require "erb"

register Sinatra::AssetPipeline

get "/" do
    erb :index
end
  1. Run application and have /assets/jquery.js!