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%5Baddress%5D=myplace
Am I right or wrong on this?
Jarl
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.