Skip to content

Instantly share code, notes, and snippets.

@bradoc
bradoc / railsconsole.output
Created June 13, 2012 13:31
Rails Console Output
irb(main):001:0> User.create email: "[email protected]", password: "abc", password_confirmation: "abc"
=> #<User id: 20, email: "[email protected]", username: "", password_digest: "$2a$10$5vEBcylkL8Cnx9R3e8VLNuVo6d0S81cLuJNewrwyBVxg...", created_at: "2012-06-13 13:28:07", updated_at: "2012-06-13 13:28:07", activation_token: "qosEs4ZTUkcvo39CZB7Yhg", activation_token_expiry: "2012-06-14 13:28:07", activated: false>
irb(main):002:0> User.find_by_activation_token! "qosEs4ZTUkcvo39CZB7Yhg"
ActiveRecord::RecordNotFound: ActiveRecord::RecordNotFound
from /Users/brad/Ruby/reallyawesomeapp/app/models/user.rb:54:in `find_by_activation_token!'
from (irb):2
from /Users/brad/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands/console.rb:47:in `start'
from /Users/brad/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands/console.rb:8:in `start'
from /Users/brad/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:41:in
@bradoc
bradoc / make.log
Last active October 9, 2017 06:08
rvm installation make.log
[2017-10-09 14:45:23] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /home/bradoc/.rvm/src/ruby-2.3.3
GEM_HOME=/home/bradoc/.rvm/gems/ruby-2.4.0
GEM_PATH=/home/bradoc/.rvm/gems/ruby-2.4.0:/home/bradoc/.rvm/gems/ruby-2.4.0@global
PATH=/home/bradoc/.rvm/gems/ruby-2.4.0/bin:/home/bradoc/.rvm/gems/ruby-2.4.0@global/bin:/home/bradoc/.rvm/rubies/ruby-2.4.0/bin:/home/bradoc/.rvm/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/FileMaker/FileMaker Server/Web Publishing/publishing-engine/php:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program Files/Windows Imaging:/cygdrive/c/Ruby192/bin:/cygdrive/c/Program Files/instantclient_11_2:/cygdrive/c/Ruby192/bin:/cygdrive/c/Program Files/Cygwin
command(2): __rvm_make -j1