I have a restful (scaffold generated) controller and model for Votes, I am simply trying to add a field into the view that when clicked, will create a new vote for a given c
You can also pass your parameters as an argument to your path helper like so
<%= button_to '+', votes_path(car_id: card.id), method: 'post' %>
You can fetch your session id from your controller or still pass it to the paths helper if you want.