Skip to content

Instantly share code, notes, and snippets.

View saikiranmothe's full-sized avatar

Sai Kiran Mothe saikiranmothe

  • Qwinix Technologies
  • Denver
View GitHub Profile
@saikiranmothe
saikiranmothe / spree_application_template.rb
Created August 16, 2013 05:51
Spree Installation -- Spree Application Template
require 'rbconfig'
require 'open-uri'
gsub_file 'Gemfile', "gem 'jquery-rails'", "gem 'jquery-rails', '~> 2.2.1'"
gsub_file 'Gemfile', "# gem 'therubyracer', :platforms => :ruby", "gem 'therubyracer', :platforms => :ruby"
if File.read("#{destination_root}/Gemfile") !~ /assets.+coffee-rails/m
gem "coffee-rails", :group => :assets
end
@saikiranmothe
saikiranmothe / will_paginate_ajaxify.md
Created August 14, 2013 13:51
Pagination with Ajax in Rails Application
Develop pagination with ajax in Rails Application.

Gem Used for pagination


Add gem in Gemfile

@saikiranmothe
saikiranmothe / blog_template.rb
Last active December 21, 2015 01:38
blog_temaplte - rails application template
run "rm public/index.html"
add_source "https://rubygems.org"
require 'rbconfig'
require 'open-uri'
require 'net/http'
gsub_file 'Gemfile', "gem 'jquery-rails'", "gem 'jquery-rails', '~> 2.0'"
gem 'devise'
gem 'activeadmin'