Skip to content

Instantly share code, notes, and snippets.

@kbuckler
Created August 4, 2009 17:34
Show Gist options
  • Save kbuckler/161370 to your computer and use it in GitHub Desktop.
Save kbuckler/161370 to your computer and use it in GitHub Desktop.
TypeError (wrong argument type Hash (expected Data)):
/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/json/encoding.rb:21:in `to_json'
/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/json/encoding.rb:21:in `send'
/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/json/encoding.rb:21:in `encode'
/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/json/encoding.rb:31:in `raise_on_circular_reference'
/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/json/encoding.rb:20:in `encode'
/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/json/encoders/enumerable.rb:10:in `to_json'
/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:211:in `map'
/vendor/rails/activerecord/lib/active_record/validations.rb:139:in `each'
/vendor/rails/activerecord/lib/active_record/validations.rb:139:in `each'
/vendor/rails/activerecord/lib/active_record/validations.rb:139:in `each_key'
/vendor/rails/activerecord/lib/active_record/validations.rb:139:in `each'
/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/json/encoders/enumerable.rb:10:in `map'
/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/json/encoders/enumerable.rb:10:in `to_json'
/app/controllers/users_controller.rb:74:in `lightbox_create'
Using require 'json/pure':
ArgumentError (wrong number of arguments (2 for 1)):
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:251:in `to_json'
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:251:in `json_transform'
/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:211:in `map'
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:245:in `each'
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:245:in `map'
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:245:in `json_transform'
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:218:in `to_json'
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:251:in `json_transform'
/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:211:in `map'
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:245:in `each'
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:245:in `map'
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:245:in `json_transform'
/vendor/gems/json-1.1.1/lib/json/pure/generator.rb:218:in `to_json'
/app/controllers/users_controller.rb:75:in `lightbox_create'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment