Fixed Map Uploader
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<h1>Exception Handler Map Uploader</h1>
|
<h1>Exception Handler Map Uploader</h1>
|
||||||
<%= form_tag ({:action => 'uploadFile'}, :multipart => true) %>
|
<%= form_tag({:action => :uploadFile}, :multipart => true) do %>
|
||||||
<label for="package">Package:</label>
|
<label for="package">Package:</label>
|
||||||
<br/>
|
<br/>
|
||||||
<input name="package" id="package" type="text" maxlength="5555500" size=50%/>
|
<input name="package" id="package" type="text" maxlength="5555500" size=50%/>
|
||||||
@@ -8,9 +8,9 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<input name="build" id="build" type="text" maxlength="5555500" size=50%/>
|
<input name="build" id="build" type="text" maxlength="5555500" size=50%/>
|
||||||
<br/>
|
<br/>
|
||||||
<%= form_tag ({:action => 'uploadFile'}, :multipart => true) %>
|
|
||||||
<p><label for="upload_file">Select File</label> :
|
<p><label for="upload_file">Select File</label> :
|
||||||
<br/>
|
<br/>
|
||||||
<%= file_field 'upload', 'datafile' %></p>
|
<%= file_field 'upload', 'datafile' %></p>
|
||||||
<%= submit_tag "Upload" %>
|
<%= submit_tag "Upload" %>
|
||||||
|
<% end %>
|
||||||
<%= form_tag %>
|
<%= form_tag %>
|
||||||
|
|||||||
@@ -21,9 +21,13 @@
|
|||||||
# If there is a match, the existing issue will be updated
|
# If there is a match, the existing issue will be updated
|
||||||
# if not a new bug issue will be generated.
|
# if not a new bug issue will be generated.
|
||||||
if Rails::VERSION::MAJOR >= 3
|
if Rails::VERSION::MAJOR >= 3
|
||||||
#RedmineApp::Application.routes.draw do
|
RedmineApp::Application.routes.draw do
|
||||||
#match 'exceptionhandler', :to => 'exceptionhandler#index', :via => [:get, :post]
|
match 'exceptionhandler', :to => 'exceptionhandler#index', :via => [:get, :post]
|
||||||
#end
|
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
|
else
|
||||||
ActionController::Routing::Routes.draw do |map|
|
ActionController::Routing::Routes.draw do |map|
|
||||||
map.connect '/exceptionhandler', :controller => 'exceptionhandler', :action => 'index'
|
map.connect '/exceptionhandler', :controller => 'exceptionhandler', :action => 'index'
|
||||||
|
|||||||
Reference in New Issue
Block a user