daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. irb(main):140:0> Card.find(:id => 1)
  2. => #<Card @values={:balance=>100.0, :first_name=>"Diego", :last_name=>"Viola", :id=>1, :card_number=>"1000"}>
  3. irb(main):141:0> Card.find(:id => 1).first_name
  4. NoMethodError: undefined method `first_name' for #<Card:0xb76c719c>
  5.         from (irb):141
  6.         from :0
  7. irb(main):142:0>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top