Skip to content

Instantly share code, notes, and snippets.

View bradly's full-sized avatar

Bradly Feeley bradly

View GitHub Profile
- fields_for "profile[contact_attributes][]", contact do |c|
%label{:for => 'contact_first_name'} First Name
= c.text_field :first_name, :size => 25
%br
%label{:for => 'contact_last_name'} Last Name
= c.text_field :last_name, :size => 25
%br
%label{:for => 'contact_email'} Email Address
= c.text_field :email, :size => 25
%br
@bradly
bradly / gist:4232
Created August 6, 2008 16:23 — forked from defunkt/gist:4169
# by bryan helmkamp with slight modification by chris wanstrath
# from http://www.brynary.com/2008/8/3/our-git-deployment-workflow
module GitCommands
extend self
def diff_staging
`git fetch`
puts `git diff origin/production origin/staging`
end
pastie was soo 2007