How can I set up collection select correctly?

With the code below, if I hit Search it takes me to these url

With FireFox >[]=1
With Safari  >✓&genre%5B%5D=1

How can I remove this "[]" and "%5B%5D"? Only I want is "&genre=1"

View code

<%= form_tag communities_path, :method => :get, :class => 'form-search' do %>
   <div class="input-append">
    <%= collection_select :genre, nil, Genre.all, :id, :name %>
    <button type="submit" class="btn">Search</button>
<% end %>


<%= select_tag :genre, options_for_select({ |g| [,] }) %>

Need Your Help

Zend Image Upload validation issue edit page

image zend-framework file-upload validation

I'm working on Zend Framework 1.11.12 version. In my add form where we've to put file upload (for photo upload) field and it has few validations as required, file extensions and size specific crite...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.