diff --git a/app/views/maps/new.html.erb b/app/views/maps/new.html.erb
index 3b94fd7..14ad36f 100644
--- a/app/views/maps/new.html.erb
+++ b/app/views/maps/new.html.erb
@@ -1,5 +1,5 @@
Exception Handler Map Uploader
-<%= form_tag ({:action => 'uploadFile'}, :multipart => true) %>
+<%= form_tag({:action => :uploadFile}, :multipart => true) do %>
@@ -8,9 +8,9 @@
- <%= form_tag ({:action => 'uploadFile'}, :multipart => true) %>
:
<%= file_field 'upload', 'datafile' %>
<%= submit_tag "Upload" %>
+ <% end %>
<%= form_tag %>
diff --git a/config/routes.rb b/config/routes.rb
index 2586caf..70ee00a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -21,9 +21,13 @@
# If there is a match, the existing issue will be updated
# if not a new bug issue will be generated.
if Rails::VERSION::MAJOR >= 3
- #RedmineApp::Application.routes.draw do
- #match 'exceptionhandler', :to => 'exceptionhandler#index', :via => [:get, :post]
- #end
+ RedmineApp::Application.routes.draw do
+ match 'exceptionhandler', :to => 'exceptionhandler#index', :via => [:get, :post]
+ match '/exceptionhandler/maps', :to => 'maps#index', :via => [:get, :post]
+ match '/uploadFile', :to => 'maps#uploadFile', :via => :post
+ match '/exceptionhandler/maps/delete/:map', :to => 'maps#deleteMap', :via => :post
+ match '/exceptionhandler/maps/new', :to => 'maps#new', :via => [:get, :post]
+ end
else
ActionController::Routing::Routes.draw do |map|
map.connect '/exceptionhandler', :controller => 'exceptionhandler', :action => 'index'