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

Following more than one #30

Open
danielcherubini opened this issue Jun 26, 2013 · 0 comments
Open

Following more than one #30

danielcherubini opened this issue Jun 26, 2013 · 0 comments

Comments

@danielcherubini
Copy link

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.

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

1 participant