Skip to content

Instantly share code, notes, and snippets.

Vijay Dev vijaydev

Block or report user

Report or block vijaydev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2492206
class ActionDispatch::Routing::Mapper
def draw(routes_name)
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb")))
end
end
BCX::Application.routes.draw do
draw :api
draw :account
draw :session
@vijaydev
vijaydev / gist:2170020
Created Mar 23, 2012 — forked from jrochkind/gist:2161449
A Capistrano Rails Guide
View gist:2170020

A Capistrano Rails Guide

by Jonathan Rochkind, http://bibwild.wordpress.com

why cap?

Capistrano automates pushing out a new version of your application to a deployment location.

I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".

@vijaydev
vijaydev / gist:755496
Created Dec 26, 2010 — forked from lifo/gist:31208
An Example Rails 3 Application Template
View gist:755496
run "rm public/index.html"
generate(:scaffold, "item name:string")
route "root :to => 'items#index'"
rake("db:migrate", "production")
gem 'ruby-openid'
gem 'will-paginate', :git => 'git://github.com/mislav/will_paginate.git'
add_source "http://code.whytheluckystiff.net"
gem "hpricot", :version => '0.6'
You can’t perform that action at this time.