Question

I am using parse_resource gem (https://github.com/adelevie/parse_resource) to taking advantage of the infrastructure from Parse.com. I am using Ruby 2.1.1.

After created a model to query the data from Parse. It returned "undefined method ParseResource' for main:Object". SeemsParseResource::Base` are not recognised. I couldn't find much on this whether I should include anything in the model or else. Also, I am not sure it is because Rails 4.1 or others.

This is the model looks like;

class Venue < ParseResource:Base
fields :name, :address, :phone, :logo, :mini_desc, :website, :email, :more_details

validate_presence_of :name
end

As for now, I only would like consume the data from Parse.com which I already done that. Object is privately accessible.

Was it helpful?

Solution

Your class name syntax is wrong, instead of:

class Venue < ParseResource:Base

you should write

class Venue < ParseResource::Base
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top