<%= form_tag( url_for(:controller => 'users',:action => 'resource_search',:id=>user.id),
              :remote=>true ,:method => 'get',:class=>'resourcesSearchloadBox',:id=>'resource_search_form') do %>
    <input type="text" name="search" placeholder="输入资源关键词进行搜索" class="searchResource" />
    <%= hidden_field_tag(:type,type) %>
    <%= submit_tag '',:class=>'homepageSearchIcon',:onfocus=>'this.blur();',:style=>'border-style:none' %>
    <!--<a href="javascript:void(0);" onclick='this.parent.submit();return false;' class="searchIcon"></a>-->
<% end %>