Skip to content

Instantly share code, notes, and snippets.

@ybakos
Created February 21, 2009 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ybakos/68156 to your computer and use it in GitHub Desktop.
Save ybakos/68156 to your computer and use it in GitHub Desktop.
>> u.core_user.reload
ArgumentError: expected an attributes Hash, got #<Sgcore::User::Group:0x5402838 @prefix_options={}, @attributes={"name"=>"Sent Invite", "group_type_id"=>nil, "updated_at"=>Thu Feb 19 18:31:39 UTC 2009, "id"=>23, "group_id"=>"23", "user_id"=>"11", "created_at"=>Thu Feb 19 18:31:39 UTC 2009}>
from /usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:939:in `load'
from /usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:653:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:946:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:946:in `load'
from /usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:946:in `map'
from /usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:946:in `load'
from /usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:941:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:941:in `load'
from /usr/local/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:914:in `reload'
from (irb):7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment