-
-
Save philcrissman/618616 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this works fine, sends an xhr to the url that I want it to. | |
# but I want to send some params. Where to put them? :-\ | |
=link_to "up", votes_path, :method => :post, :remote => true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thought I tried this already, but this does the trick:
=link_to "up", votes_path(:vote => {:value => '1'}), :method => :post, :remote => true