Ruby on Rails: date search
===

Quick question. I am trying to set up a page that searches a database using a start date, end date and keywords. If i was to search 19-07-2012, the path would look like 

search?utf8=%E2%9C%93&project%5Bstart_date%5D=19-07-2012&project%5Bend_date%5D=&%5Bstatus%5D=&keywords=

and all results would show. However when I search keywords, the search works. I can't see where I'm going wrong.

    <h1>Search</h1>
    
    
    
    
    <%= form_tag search_path, method: :get do %>
    Start Date :
    
    <%#= text_field_tag :start_date, params[:start_date] %></br>
    
    <div class="field">
        
    <%= datepicker_input "project","start_date" %></br>
    </div>
    
    End Date :
    
    <%#= text_field_tag :end_date, params[:end_date] %></br>
    <%= datepicker_input "project","end_date" %></br>
    
    
    Status :
    
    <%= select(@projects, :status, Project.all.map {|p| [p.status]}.uniq, :prompt => "-Any-", :selected => params[:status]) %></br>
    
    Keywords :
    
    <%= text_field_tag :keywords, params[:keywords] %></br>
    
    <%= submit_tag "Search", name: nil %>
    
    <% end %>

Contoller:

> def search
> 
> 
> 
> @project_search = Project.search(params[:start_date],
> params[:end_date], params[:keywords]).order(sort_column + ' ' +
> sort_direction).paginated_for_index(per_page, page)
> 
>    @project = Project.new(params[:project])
> 
> respond_to do |format|
>       format.html # search.html.erb
>       format.json { render :json => @project }
>     end
> 
> end

Any ideas? Thanks