You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have it setup and working fine with following a single group of items... using your ajax gist.
So In my project there are apples, and there are bananas, users can follow as many apples as they want.. and it works.. I also have a different model/controller for Bananas, now I'm wondering inside the FollowsController example you have setup a create and destroy function.
I am wondering how I can modify this so that It is aware of if I am on an Apple view clicking follow, then execute the apple create/destroy functions, OR if I am on a Banana view.
Also finally, The same goes for the create.js.erb/destroy.js.erb
I have tried checking what page it came from, and also checking the param[:controller] .. with no success.
The text was updated successfully, but these errors were encountered:
Hi, I have it setup and working fine with following a single group of items... using your ajax gist.
So In my project there are apples, and there are bananas, users can follow as many apples as they want.. and it works.. I also have a different model/controller for Bananas, now I'm wondering inside the FollowsController example you have setup a create and destroy function.
I am wondering how I can modify this so that It is aware of if I am on an Apple view clicking follow, then execute the apple create/destroy functions, OR if I am on a Banana view.
Also finally, The same goes for the create.js.erb/destroy.js.erb
I have tried checking what page it came from, and also checking the param[:controller] .. with no success.
The text was updated successfully, but these errors were encountered: