-params_for_url = params.dup
-params_for_url.delete(:tag_search_ids)

-params_for_url.delete(:home)

=form_tag url_for({}.merge!(params_for_url).merge!({:format => "js"})), {:method => :post, :remote => true} do
  =submit_tag "filtrer"
  -if params[:home]
    =hidden_field_tag :view_all_images, true
  =#<input type="hidden" name="tag_search_ids[]" id="image_file_tags_none" value="">
  
  %ul=render :partial => "admin/tags/tag_search_form", :collection => Tag.where(:parent_id => nil, :id => @tags_ids).all #, :locals => {:form => form}
  

%br
%br
%br


-params_for_url = params.dup
-params_for_url.delete(:tag_search_ids)

=form_tag url_for({}.merge!(params_for_url).merge!({:format => "js"})), {:method => :post, :remote => true} do
  =text_field_tag "q"
  =submit_tag "Rechercher"
 