aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/admin_public_body/index.html.erb2
-rw-r--r--config/routes.rb3
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/admin_public_body/index.html.erb b/app/views/admin_public_body/index.html.erb
index 8516de90c..861593bee 100644
--- a/app/views/admin_public_body/index.html.erb
+++ b/app/views/admin_public_body/index.html.erb
@@ -11,7 +11,7 @@
<%= link_to 'New public authority', new_admin_body_path, :class => "btn btn-primary" %>
</div>
<div class="btn-group">
- <%= link_to 'Import from CSV file', admin_body_import_csv_path, :class => "btn btn-warning" %>
+ <%= link_to 'Import from CSV file', import_csv_admin_bodies_path, :class => "btn btn-warning" %>
</div>
</div>
diff --git a/config/routes.rb b/config/routes.rb
index 76335c849..b3d1fd677 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -174,9 +174,10 @@ Alaveteli::Application.routes.draw do
:controller => 'admin_public_body' do
get 'missing_scheme', :on => :collection
post 'mass_tag_add', :on => :collection
+ get 'import_csv', :on => :collection
+ post 'import_csv', :on => :collection
end
end
- match '/admin/body/import_csv' => 'admin_public_body#import_csv', :as => :admin_body_import_csv
####
#### AdminPublicBodyCategory controller