This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # bundle list | |
| Gems included by the bundle: | |
| * abstract (1.0.0) | |
| * actionmailer (3.0.0) | |
| * actionpack (3.0.0) | |
| * active_merchant (1.5.2) | |
| * activemodel (3.0.0) | |
| * activerecord (3.0.0) | |
| * activeresource (3.0.0) | |
| * activesupport (3.0.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ rake --trace | |
| (in /Users/erik/projects/spro/code/sproutrobot) | |
| rake aborted! | |
| no such file to load -- initializer | |
| /Users/erik/projects/spro/code/sproutrobot/config/boot.rb:55:in `require' | |
| /Users/erik/projects/spro/code/sproutrobot/config/boot.rb:55:in `load_initializer' | |
| /Users/erik/projects/spro/code/sproutrobot/config/boot.rb:111:in `run' | |
| /Users/erik/projects/spro/code/sproutrobot/config/boot.rb:11:in `boot!' | |
| /Users/erik/projects/spro/code/sproutrobot/config/boot.rb:124 | |
| /Users/erik/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'active_merchant' | |
| class Charge < ActiveRecord::Base | |
| attr_accessor :auth_response, :capture_response | |
| belongs_to :user | |
| validate :credit_card_must_be_valid | |
| validates_presence_of :billing_address | |
| validates_presence_of :city, :message => "for billing address can't be blank" | |
| validates_presence_of :state, :message => "for billing address can't be blank" | |
| validates_presence_of :billing_zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'sinatra' | |
| require 'rdiscount' | |
| require 'haml' | |
| require 'dm-core' | |
| require 'sinatra-authentication' | |
| use Rack::Session::Cookie, 'shhhhhhhhhhhhhhh~' | |
| class Page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'authlogic' | |
| require 'spec' | |
| require 'active_record' | |
| ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => 'test.db') | |
| class User < ActiveRecord::Base | |
| acts_as_authentic do |c| | |
| c.validate_login_field = {:if => :active?} | |
| c.validate_password_field = {:if => :active?} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'RMagick' | |
| require 'ruby-debug' | |
| layout = "QWERT | |
| YUIOP | |
| ASDFG | |
| HJKLNM | |
| ZXCVB" |
NewerOlder