Skip to content

Instantly share code, notes, and snippets.

gc my-branch                  # always work on a local branch

gca "some commit message"     # commit early, commit often

gfom && grom;                 # fetch and merge often

gca "some commit message"     # last commit before merge

git rebase -i origin/master   # interactive rebase to squash commits and make nice commit log
config.gem 'devise'
config.gem 'devise', :version => '>=1.0.0'
ActionView::TemplateError (undefined local variable or method `new_user_session_path' for #<ActionView::Base:0x243fca4>) on line #27 of app/views/shared/_header.html.haml: 24: 25: - else 26: %li= link_to "Join", join_url 27: %li= link_to "Sign In", new_user_session_path
class User < ActiveRecord::Base
devise :all
class User < ActiveRecord::Base
devise :authenticatable, :confirmable, :recoverable, :rememberable, :trackable, :validatable
Devise.setup do |config|
...
config.mailer_content_type = 'text/plain'
gem install glennr-devise
or
config.gem 'glennr-devise', :lib => 'devise', :source => 'http://gemcutter.org'
alias mbp='mate -w ~/.bash_profile && source ~/.bash_profile'
#! /bin/sh
find . -name \*.rb -type f | xargs grep -nHr "$1"