Fixed Map Uploader
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<h1>Exception Handler Map Uploader</h1>
|
||||
<%= form_tag ({:action => 'uploadFile'}, :multipart => true) %>
|
||||
<%= form_tag({:action => :uploadFile}, :multipart => true) do %>
|
||||
<label for="package">Package:</label>
|
||||
<br/>
|
||||
<input name="package" id="package" type="text" maxlength="5555500" size=50%/>
|
||||
@@ -8,9 +8,9 @@
|
||||
<br/>
|
||||
<input name="build" id="build" type="text" maxlength="5555500" size=50%/>
|
||||
<br/>
|
||||
<%= form_tag ({:action => 'uploadFile'}, :multipart => true) %>
|
||||
<p><label for="upload_file">Select File</label> :
|
||||
<br/>
|
||||
<%= file_field 'upload', 'datafile' %></p>
|
||||
<%= submit_tag "Upload" %>
|
||||
<% end %>
|
||||
<%= form_tag %>
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user