Guest User

Untitled

a guest
May 20th, 2018
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. >> u = User.find(:all, :limit => 3)
  2. => [#<User id: 1, username: "cameron", first_name: "Cameron", last_name: "Booth", email: "cameron@theworkinggroup.ca", crypted_password: "4abef64f13ee68c01011ad09909fe64ed76ac361", salt: "46981b2fb1f85d73fe5d3b68bfe43a3c50d8c0ee", is_verified: true, role: 1, remember_token: nil, remember_token_expires_at: nil, created_at: "2007-06-22 16:47:48", updated_at: "2008-07-24 15:35:47", parent_id: nil, email_validation_key: 1182545268, date_of_birth: "1975-05-07", description: "I'm lead developer on this site, and am super psych...", city: "Chicago", state: "IL", zip: "60622", latitude: "41.903625", longitude: "-87.675881", newsfeed_id: 1, affiliated_org_id: nil, is_email_notifiable: true, country: "", long_description: "", private_profile_setting: 0, private_last_name_setting: 0, private_location_setting: 0, last_activity: "2008-07-24 15:35:47", reset_email: false>, #<User id: 2, username: "dombort", first_name: "Dominic The Greatest", last_name: "Bortolussi That Ever Lived In the world", email: "dominic.bortolussi@gmail.com", crypted_password: "b599fb34e4c2eca708dc2d60c38e09e407d46b44", salt: "410b105633f3797fac2e41542d6baebe51c7c78f", is_verified: true, role: 0, remember_token: nil, remember_token_expires_at: nil, created_at: "2007-06-22 17:08:45", updated_at: "2008-03-21 12:27:57", parent_id: nil, email_validation_key: 1182546525, date_of_birth: "1972-04-06", description: "Ths is dom's profile... and he is psyched to use Za...", city: "Toronto on the west side down by the lake", state: "ON", zip: "", latitude: "", longitude: "", newsfeed_id: 2, affiliated_org_id: nil, is_email_notifiable: true, country: "CA", long_description: "", private_profile_setting: 0, private_last_name_setting: 0, private_location_setting: 0, last_activity: "2008-03-21 12:27:57", reset_email: false>, #<User id: 3, username: "hesham", first_name: "Hesham", last_name: "El-Nahhas", email: "hesham@theworkinggroup.ca", crypted_password: "9fc109c9f5335684e2cdc00e39b5f88e98a0f3d2", salt: "61089541ca492cce6b387e53f45d2716f1db9cbe", is_verified: true, role: 0, remember_token: nil, remember_token_expires_at: nil, created_at: "2007-06-22 17:10:45", updated_at: "2008-07-09 16:37:19", parent_id: nil, email_validation_key: 1182546645, date_of_birth: "1978-05-10", description: "", city: "Toronto", state: "ON", zip: "", latitude: "43.670233", longitude: "-79.386755", newsfeed_id: 3, affiliated_org_id: nil, is_email_notifiable: false, country: "CA", long_description: "", private_profile_setting: 0, private_last_name_setting: 1, private_location_setting: 0, last_activity: "2008-07-09 16:37:19", reset_email: false>]
  3. >> u.first['asdf']
  4. => nil
  5. >> u.each {|x| x['asdf'] = x.longitude}
  6. => [#<User id: 1, username: "cameron", first_name: "Cameron", last_name: "Booth", email: "cameron@theworkinggroup.ca", crypted_password: "4abef64f13ee68c01011ad09909fe64ed76ac361", salt: "46981b2fb1f85d73fe5d3b68bfe43a3c50d8c0ee", is_verified: true, role: 1, remember_token: nil, remember_token_expires_at: nil, created_at: "2007-06-22 16:47:48", updated_at: "2008-07-24 15:35:47", parent_id: nil, email_validation_key: 1182545268, date_of_birth: "1975-05-07", description: "I'm lead developer on this site, and am super psych...", city: "Chicago", state: "IL", zip: "60622", latitude: "41.903625", longitude: "-87.675881", newsfeed_id: 1, affiliated_org_id: nil, is_email_notifiable: true, country: "", long_description: "", private_profile_setting: 0, private_last_name_setting: 0, private_location_setting: 0, last_activity: "2008-07-24 15:35:47", reset_email: false>, #<User id: 2, username: "dombort", first_name: "Dominic The Greatest", last_name: "Bortolussi That Ever Lived In the world", email: "dominic.bortolussi@gmail.com", crypted_password: "b599fb34e4c2eca708dc2d60c38e09e407d46b44", salt: "410b105633f3797fac2e41542d6baebe51c7c78f", is_verified: true, role: 0, remember_token: nil, remember_token_expires_at: nil, created_at: "2007-06-22 17:08:45", updated_at: "2008-03-21 12:27:57", parent_id: nil, email_validation_key: 1182546525, date_of_birth: "1972-04-06", description: "Ths is dom's profile... and he is psyched to use Za...", city: "Toronto on the west side down by the lake", state: "ON", zip: "", latitude: "", longitude: "", newsfeed_id: 2, affiliated_org_id: nil, is_email_notifiable: true, country: "CA", long_description: "", private_profile_setting: 0, private_last_name_setting: 0, private_location_setting: 0, last_activity: "2008-03-21 12:27:57", reset_email: false>, #<User id: 3, username: "hesham", first_name: "Hesham", last_name: "El-Nahhas", email: "hesham@theworkinggroup.ca", crypted_password: "9fc109c9f5335684e2cdc00e39b5f88e98a0f3d2", salt: "61089541ca492cce6b387e53f45d2716f1db9cbe", is_verified: true, role: 0, remember_token: nil, remember_token_expires_at: nil, created_at: "2007-06-22 17:10:45", updated_at: "2008-07-09 16:37:19", parent_id: nil, email_validation_key: 1182546645, date_of_birth: "1978-05-10", description: "", city: "Toronto", state: "ON", zip: "", latitude: "43.670233", longitude: "-79.386755", newsfeed_id: 3, affiliated_org_id: nil, is_email_notifiable: false, country: "CA", long_description: "", private_profile_setting: 0, private_last_name_setting: 1, private_location_setting: 0, last_activity: "2008-07-09 16:37:19", reset_email: false>]
  7. >> u.first['asdf']
  8. => "-87.675881"
  9. >>
Add Comment
Please, Sign In to add comment