Skip to content

Instantly share code, notes, and snippets.

View zarazan's full-sized avatar

Kyle zarazan

  • @Umee_CrossChain
  • Colorado
  • 03:34 (UTC -06:00)
View GitHub Profile
@guilleiguaran
guilleiguaran / disable_framework.md
Created October 10, 2012 21:35
Disabling frameworks in Rails 3+

Disabling frameworks in Rails 3+###

Replace in your config/application.rb

require "rails/all"

with:

require "rails"
@killercup
killercup / README.md
Created March 16, 2012 11:03
Unicorn, RVM Wrapper, Init.d

You have your Rails Apps with specific Gemsets in RVM.

The following commands creates a wrapped unicorn_rails bin. Be sure to replace the variables and that you have unicorn in your bundle.

rvmsudo rvm wrapper [RUBY VERSION]@[GEMSET] [GEMSET] unicorn_rails

Now you have a /usr/local/rvm/bin/[GEMSET]_unicorn_rails I will refer to [GEMSET]_unicorn_rails as [WRAPPED_NAME]

@ambethia
ambethia / seeds.rb
Created September 15, 2009 16:40
Using environment specific yaml fixtures as seed data in Rails 2.3.4
# == Using environment specific yaml fixtures as seed data in Rails 2.3.4
#
# Setup your directory structure like below:
#
# -- RAILS_ROOT
# `-- db
# |-- seeds
# | |-- development
# | | |-- books.yml
# | | `-- users.yml