Topic: GET or POST

hi,
   I want to know that submit_to_remote send data using get or post method. what I have to do for change method from get to post or post to get.


Thanks in advance.

Re: GET or POST

It defaults to a POST request. Try this to change it to GET.

<%= submit_to_remote 'submit', 'submit', :method => :get %>

Railscasts - Free Ruby on Rails Screencasts

Re: GET or POST

Thanks! your information is very helpful for me.