Skip to content

Instantly share code, notes, and snippets.

@andrijaperovic
Created September 9, 2015 23:46
Show Gist options
  • Save andrijaperovic/5683981ceef34ee0fd11 to your computer and use it in GitHub Desktop.
Save andrijaperovic/5683981ceef34ee0fd11 to your computer and use it in GitHub Desktop.
Started GET "/cairo/v1/92f0a3bd780b6a75ca2251fa88656fb5/sites?includes=all" for 54.147.197.182 at 2015-09-09 16:17:12 -0700
Processing by Cairo::SitesController#index as JSON
Parameters: {"includes"=>"all", "api_version_number"=>"v1", "api_key"=>"92f0a3bd780b6a75ca2251fa88656fb5"}
Completed 500 Internal Server Error in 332ms
NoMethodError (undefined method `id' for nil:NilClass):
app/models/leaderboard.rb:1405:in `unit_display_label'
app/models/leaderboard.rb:1419:in `as_json_cairo'
lib/badgeville/cairo/json_format.rb:52:in `resource_payload'
lib/badgeville/cairo/json_format.rb:62:in `block in cairo_sub_collection'
lib/badgeville/cairo/json_format.rb:60:in `map'
lib/badgeville/cairo/json_format.rb:60:in `cairo_sub_collection'
lib/badgeville/cairo/json_format.rb:71:in `block (2 levels) in cairo_sub_collection'
lib/badgeville/cairo/json_format.rb:63:in `each'
lib/badgeville/cairo/json_format.rb:63:in `block in cairo_sub_collection'
lib/badgeville/cairo/json_format.rb:60:in `map'
lib/badgeville/cairo/json_format.rb:60:in `cairo_sub_collection'
lib/badgeville/cairo/json_format.rb:104:in `get_payload_data_for_collection'
lib/badgeville/cairo/json_format.rb:88:in `cairo_collection'
app/controllers/cairo/base_controller.rb:54:in `index'
app/controllers/cairo/sites_controller.rb:6:in `index'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment