Don’t really know how to look for this, so without a long search I post this here.
What I want is a url like this:
/domains/whois/domainname.com
The problem is when I use a form the params get in the url like this:
/domains/whois/?utf8=✓&whois%5Bdomain%5D=domainname.com&commit=submit
My routes are like this at the moment:
namespace :domains do
match "whois(/:domain)" => "whois#index"
end
My form is like this:
<%= form_for :whois, :method => :get do |form| %>
<%= form.text_field :domain %>
<%= form.submit "Vertel" %>
<% end %>
Anybody knows what I should do to get the param nested in the route?
Thanks!
Found my answer here:
Simple search form passing the searched string through GET
Guess it’s not possible without the redirect.