On Sat, May 28, 2011 at 7:25 AM, Chris Kottom <ch...@chriskottom.com> wrote:

> By default, the HTTP verb for button_to is POST.  If you really want to
> make the request as a GET, you need to do it as:
>
> button_to "New", :action => "click", :method => :get
>
>
>  Well.I did it but failed.Same error persists.
> <%= button_to "New", :action => "click",:method => :get %>
>
>  John
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to