Skip to content

Instantly share code, notes, and snippets.

View Anjen1's full-sized avatar

Andrew Jenkins Anjen1

View GitHub Profile
/* -----------------------------------------------------------------------
Blueprint CSS Framework 0.8
http://blueprintcss.org
* Copyright (c) 2007-Present. See LICENSE for more info.
* See README for instructions on how to use Blueprint.
* For credits and origins, see AUTHORS.
* This is a compressed file. See the sources in the 'src' directory.
pdf.text "-- Paid on #{@invoice.paid_at.strftime("%m/%d/%Y")} --", :size => 16, :style => :bold, :align => :center
validations with conditions-----------
attr_accessor :pervalidations
with_options :if => Proc.new{|a| a.pervalidations} do |form|
form.validates_presence_of :first_name, :message => "^Please enter your first name"
end