From 4235ca89847b6c39a4615ccbff671748bab572f2 Mon Sep 17 00:00:00 2001 From: nwb Date: Wed, 14 May 2014 15:23:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/files/index.html.erb | 4 ++-- config/routes.rb | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index c71a1483..0d9a3a21 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -206,8 +206,8 @@ attachments_autocomplete_path(:format => 'js'), :remote => true, :method => :post) do %> - <%= label_tag(:atext_field_tagttach_search, "按关键字搜索:") %> - <%= (:attach_search) %> + <%= label_tag(:attach_search, "按关键字搜索:") %> + <%= text_field_tag(:attach_search) %> <%#= submit_tag("Search") %> <% end -%> <%= form_tag attach_relation_path(:format => 'js'), diff --git a/config/routes.rb b/config/routes.rb index c743c215..7d7cb2bb 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -456,7 +456,6 @@ RedmineApp::Application.routes.draw do get 'attachments/autocomplete' match 'attachments/autocomplete', :to => 'attachments#autocomplete', via: [:post] post 'attachments/relationfile', to: 'attachments#add_exist_file_to_project', as: 'attach_relation' - post 'attachments/updateType/:attachmentid/:newtype' ,:to => 'attachments#updateType', :attachmentid => /\d+/, :newtype => /.*/ resources :attachments, :only => [:show, :destroy] do collection do match "updateType" , via: [:get, :post]