He is trying to CREATE something, so POST is definitely the way to go.
You don't want votes to be created by some web crawler or some crazy
Google Caching tool do you?
The URL that is generated by the link_to has the params in the URL but
I it is not working for some reason.
Ok, I just asked Rick Olson (core member) and he said this won't
work/isn't supported. Primarily because it isn't really 'RESTful'. But
that doesn't mean you can't go old school on it and do it that way. So
create an add_vote method and grab the params and go on about your
day. But still use the :post => true for the reasons I explained to
Stuart.
Stuart... I don't think you were wrong at all. If you are trying to
get to the form to enter data (which is 'new'), then you are correct.
However, if you are trying to actually create the object from the
link, then you would want to go this other route. Who knows what Mr.
Bolo wants
Thanks Carl! I’m far from a rest initiate, even though I took the plunge to make my app as restful as possible.
Good to know about the link , sure at some point I’ll need it
1. i am girl
2. i would like a create a object form link
Ok, I just asked Rick Olson (core member) and he said this won't
work/isn't supported. Primarily because it isn't really 'RESTful'. But
that doesn't mean you can't go old school on it and do it that way. So
create an add_vote method and grab the params and go on about your
day. But still use the :post => true for the reasons I explained to
Stuart.