Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding User to an object #15

Open
stevebooks opened this issue Feb 13, 2013 · 4 comments
Open

Adding User to an object #15

stevebooks opened this issue Feb 13, 2013 · 4 comments

Comments

@stevebooks
Copy link

I have a class called "Trip", it looks like this:

class Trip
  include ParseModel::Model
  fields :user, :description
end

If I do the following:

t = Trip.new
t.user = User.current_user
t.saveEventually

I get the following error:

 Model.rb:19:in `method_missing:': NSInvalidArgumentException: PFObject values may not have class: RBUser (RuntimeError)
@stevebooks
Copy link
Author

This however, does work:

t = Trip.new
t.user = PFUser.currentUser
t.save

@adelevie
Copy link
Owner

Well you should always be able to drop right down to the Parse SDK and be
fine.

On Wed, Feb 13, 2013 at 10:17 AM, stevebooks notifications@github.comwrote:

This however, does work:

t = Trip.new
t.user = PFUser.currentUser
t.save


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-13498503.

@stevebooks
Copy link
Author

Yeah, I figured that. I thought I would report it in case you wan't to eliminate "gotchas" in the gem.

@adelevie
Copy link
Owner

Yea this is good. Thanks for reporting the error. Been super busy but I should fix this. Unless you want to :)

Sent from my iPhone

On Feb 13, 2013, at 11:07 AM, stevebooks notifications@github.com wrote:

Yeah, I figured that. I thought I would report it in case you wan't to eliminate "gotchas" in the gem.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants