Closed Brantron closed 8 years ago
To me, your use of form_tag
looks incorrect. I think the first argument should be url_for_options
. (see here). Rather than supplying @user.accept_request(user)
as the first argument to your form_tag
, I think you want to use it in your controller.
Let me know if you already solved this.
I guess this issue has been solved by Branton and it does not relate the gem itself so I will close it.
Hey, first off, THANKS! This gem is awesome
One Issue I am having (due to the fact I'm new to rails and Ruby, not an issue with your gem) is implementing it in a form.
Could you provide an example of how one would implement it from controller to view? for example, I have the following.
and the first form tag throws undefined method `update' for nil:NilClass
the controller is bellow
I can submit a PR for documentation once I know what the proper implementation use