Skip to content

Instantly share code, notes, and snippets.

@GriffinHeart
Created June 8, 2015 06:14
Show Gist options
  • Save GriffinHeart/1930b65b966a6acec1f5 to your computer and use it in GitHub Desktop.
Save GriffinHeart/1930b65b966a6acec1f5 to your computer and use it in GitHub Desktop.
gem 'active_model_serializers', github: 'rails-api/active_model_serializers', branch: '0-10-stable'
class Item
include Mongoid::Document
include Mongoid::Timestamps
end
def index
render json: Item.all
end
-----
Failure/Error: get 'index'
NoMethodError:
undefined method `new' for nil:NilClass
@GriffinHeart
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment