On Tue, Sep 7, 2010 at 3:44 AM, Priyanka Pathak <li...@ruby-forum.com>wrote:
> Hello, > I am using link_to helper to post the request. i want to hide the > extra parameters. so i have tried :method => :post also :post => true. > but it's not works for me. still it shows query string. can any one > suggest proper solution? POST is not the same as "GET with the parameters hidden." Read about the HTTP methods here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html Basically, GET is for retrieval, and POST is for resource creation. If you're doing a retrieval, the method should be GET, not POST. There's a reason anchor tags (created by link_to) cannot do POST: because they are just supposed to link two documents together, not affect state. -- 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-t...@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.