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

fix this error #38

Open
sociliza opened this issue Jul 6, 2016 · 3 comments
Open

fix this error #38

sociliza opened this issue Jul 6, 2016 · 3 comments

Comments

@sociliza
Copy link

sociliza commented Jul 6, 2016

undefined method `accept!' for nil:NilClass

@eblohm
Copy link
Contributor

eblohm commented Jul 8, 2016

What version of the gem are you using?

@sungwoncho
Copy link
Collaborator

sungwoncho commented Jul 8, 2016

@sociliza Possibly related to #25. Need gem version and steps to reproduce.

@Advice-Dog
Copy link

Advice-Dog commented Jan 13, 2017

I was able to reproduce this issue while attempting to use link_to.
has_friendship 1.0.2 with devise 4.2.0

// users/show.html.erb
<%= link_to 'Accept Friend Request', current_user.accept_request(@user) %>

I think it's because I'm trying to use this incorrectly. Can you add an example using link_to to the ReadMe?
Also, can you also add an example about checking if there is a sent pending request towards that user? I only saw friends_with?.

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

4 participants