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
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 | |
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
* 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. | |
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
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. |
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
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 |
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
rvm --trace gemset albinochipmunk | |
--trace gemset albinochipmunk | |
rvm 0.1.23 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/] | |
+ [[ -z '' ]] | |
+ [[ ! -z '' ]] | |
+ [[ ! -z '' ]] | |
+ [[ ! -z '' ]] | |
+ [[ 2 -gt 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
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 ~ |
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
--trace gemset use two | |
rvm 0.1.24 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/] | |
+ [[ -z '' ]] | |
+ [[ ! -z '' ]] | |
+ [[ ! -z '' ]] | |
+ [[ ! -z '' ]] |
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
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 |
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
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' |
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
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 ] |
OlderNewer