Created
September 4, 2009 16:22
-
-
Save c3mediagroup/180975 to your computer and use it in GitHub Desktop.
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
?> user = User.find(210) | |
=> #<User id: 210, login: "robert_wynn", email: "[email protected]", remember_token: nil, crypted_password: "512ad67e4c1885e18fac75dab6215f25989e414a", salt: "6b2c1f82c74380319f02644ca1ef04d1f4a9ed1a", remember_token_expires_at: nil, updated_at: "2009-09-01 20:17:49", created_at: "2008-08-08 17:26:41", account_id: 1, admin: false, name: "Robert Wynn", roles: nil, advisor: true, manager: false, executive: false, image: nil, active: true, guardian_name: "ROBERT WYNN", guardian_num: "XV306", phone_work: "", phone_mobile: "", bio: "", designations: "", street: "", city: "", state: "", zip: "", office: "", model: nil, first_name: "Robert", last_name: "Wynn", app_user: true, staff: nil, contract_classification: nil, contract_relationship: nil, license: nil, bus_card_use: nil, lbs_use: nil, advisor_location: nil, contract_status: nil, alt_email: nil, contract_date: nil, contract_notes: nil, contract_yr_class: nil, display_name: "Robert Wynn", street_2: nil, state_2: nil, zip_2: nil, birthdate: nil, anniversary: nil, spouse: nil, url: nil, city_2: nil, apr_status: "qualified"> | |
>> p user.combined_product_year.period(2009).map(&:total) | |
NoMethodError: undefined method `combined_product_year' for #<User:0x608ccc0> | |
from /srv/statusroom/releases/20090830140356/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:260:in `method_missing' | |
from (irb):7 | |
from :0 | |
>> p user.categorical_years.period(2009).map(&:total) | |
[#<BigDecimal:60264c0,'0.0',9(18)>, #<BigDecimal:6026358,'0.3045E4',9(18)>, #<BigDecimal:60261f0,'0.78913E5',9(18)>, #<BigDecimal:6026088,'0.24328E5',9(18)>, #<BigDecimal:6025f20,'0.173315E6',9(18)>, #<BigDecimal:6025d90,'0.42776E5',9(18)>] | |
=> nil | |
>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment