Skip to content

Instantly share code, notes, and snippets.

View chrislerum's full-sized avatar

Chris Lerum chrislerum

View GitHub Profile
class PokerRoom < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
has_many :poker_room_bonuses
has_one :poker_room_image, :dependent => :destroy
end
* Setting kernel variables (/etc/sysctl.d/10-process-security.conf)...
protect" is an unknown key
error: "vm.mmap_min_addr" is an unknown key
[fail]
* Activating swap... [ OK ]
* Checking root file system...
2008)
/dev/xvda contains a file system with errors, check forced.
/dev/xvda: Inodes that were part of a corrupted orphan linked list found.
oot@cyrus:~# fsck
fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/xvda contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found. Fix<y>? yes
Inode 1595 was part of the orphaned inode list. FIXED.
Inode 2687 was part of the orphaned inode list. FIXED.
Inode 3474 was part of the orphaned inode list. FIXED.
class User < ActiveRecord::Base
has_attached_file :avatar, :styles => {:thumb => '100x100>'}
end
###########
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :avatar_file_name
rvm --trace gemset albinochipmunk
--trace gemset albinochipmunk
rvm 0.1.23 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]
+ [[ -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ 2 -gt 0 ]]
second gemset cannot be used (but can if close and re-open shell)
ruby-1.8.7-p72 ~
rvm gemset list
gemsets : for ruby-1.8.7-p72 (found in /Users/chris/.rvm/gems/)
global
ruby-1.8.7-p72 ~
rvm gemset create one
Gemset 'one' created.
ruby-1.8.7-p72 ~
--trace gemset use two
rvm 0.1.24 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]
+ [[ -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
gemsets : for ruby-1.8.7-p72 (found in /Users/chris/.rvm/gems/)
global
one
two
ruby-1.8.7-p72 ~
rvm gemset use one
Now using gemset 'one'
usage: basename string [suffix]
basename [-a] [-s suffix] string [...]
awk: extra } at source line 1
rvm --create use 1.9.1%rails3
ruby ruby-1.9.1%rails3 is not installed.
To install do: 'rvm install ruby-1.9.1%rails3'
rvm list
rvm Rubies
ruby-1.8.7-p72 [ x86_64 ]
ruby-1.9.1-p378 [ x86_64 ]
System Ruby
system [ x86_64 i386 ppc ]