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
[jc@macbookpro ~/tmp/test]# gem list | |
*** LOCAL GEMS *** | |
abstract (1.0.0) | |
actionmailer (3.0.0.beta2) | |
actionpack (3.0.0.beta2) | |
activemodel (3.0.0.beta2) | |
activerecord (3.0.0.beta2) | |
activeresource (3.0.0.beta2) |
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 "mongoid" | |
class Person | |
include Mongoid::Document | |
field :name | |
validate do | |
errors.add(:name, "NO NAME") if self.name.blank? |
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 "mongoid" | |
class Person | |
include Mongoid::Document | |
field :name | |
before_save :check_for_name | |
protected |
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
begin | |
# require only what we need from newer versions of active_support (>= 3.0) | |
require 'active_support/core_ext/class' | |
require 'active_support/core_ext/object' | |
require 'active_support/core_ext/module' | |
require 'active_support/core_ext/hash' | |
rescue LoadError | |
# support older versions of active_support | |
require "active_support/all" |
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
resources :users do | |
collection do | |
any :forgot | |
end | |
end |
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
source :gemcutter | |
gem "rails", "2.3.5", :require => nil | |
gem "authlogic" | |
gem "compass" | |
gem "fancy-buttons", "0.4.1" | |
gem "haml" | |
gem "nifty-generators" |
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
[jc@macbookpro ~/tmp/bundlerhax1]# bundle install | |
Fetching source index from http://gemcutter.org/ | |
Resolving dependencies | |
Installing rake (0.8.7) from system gems | |
Installing activeresource (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache | |
Installing fancy-buttons (0.4.1) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache | |
Installing compass (0.10.0.rc1) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache | |
Installing compass-colors (0.3.1) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache | |
Installing activerecord (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache | |
Installing rails (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache |
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 install | |
Fetching source index from http://gemcutter.org/ | |
Resolving dependencies | |
Installing rake (0.8.7) from system gems | |
Installing activeresource (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax/cache | |
Installing fancy-buttons (0.4.1) from rubygems repository at http://gemcutter.org/ | |
Installing compass (0.10.0.rc1) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax/cache | |
Installing compass-colors (0.3.1) from rubygems repository at http://gemcutter.org/ | |
Installing activerecord (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax/cache | |
Installing rails (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax/cache |
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
[jc@macbookpro ~/Rails3/railsgen(master)]# bundle show | |
Gems included by the bundle: | |
/Users/jc/.rvm/gems/ruby-1.8.7-p249%railsgen/gems/bundler-0.9.5/lib/bundler/resolver.rb:97:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement | |
* abstract (1.0.0) | |
* actionmailer (3.0.0.beta) | |
* actionpack (3.0.0.beta) | |
* activemodel (3.0.0.beta) | |
* activerecord (3.0.0.beta) | |
* activeresource (3.0.0.beta) | |
* activesupport (3.0.0.beta) |
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
# Edit this Gemfile to bundle your application's dependencies. | |
source 'http://gemcutter.org' | |
gem "bundler", "0.9.5" | |
gem "rails", "3.0.0.beta" | |
gem "haml" | |
gem "compass", ">= 0.10.0.rc1" | |
# required for getting sass to work with heroku |
NewerOlder