URL encoding when method = :get

Hi.

I have a form that shall create a simple GET query.

Therefore I have in my view (new.html.erb)

<% form_for(@re, :url => {:action => 'query'}, :html => { :method =>
:get}) do |f| %>
  <p/>
    <%= f.label :address %><br />
    <%= f.text_area :address %>
  <p/>
    <%= f.submit 'Get' %>

<% end %>

But when filling out with "myplace" and clicking on the forms submit button it creates a GET URL like
this:

http://test.host/query?re[address]=myplace

But I believe (accoring to
http://en.wikipedia.org/wiki/Query_string#URL_encoding), that shall be
encoded as

http://test.host/query?re[address]=myplace

Am I right or wrong on this?

Jarl

Jarl Friis <jarl@gavia.dk> writes:

But when filling out with "myplace" and clicking on the forms submit button it creates a GET URL like
this:

http://test.host/query?re[address]=myplace

I was wrong on this:

The above string is how my browser renders the url, The actual HTTP
GET request contains the percent-encoded url.
http://test.host/query?re[address]=myplace

Sorry for the inconvenience

Jarl