Added a form for uploading maps
also added license to all files, and created LICENSE refs #16
This commit is contained in:
13
LICENSE
Normal file
13
LICENSE
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Copyright 2012 Richard Barrette
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
30
app/controllers/maps_controller.rb
Executable file
30
app/controllers/maps_controller.rb
Executable file
@@ -0,0 +1,30 @@
|
|||||||
|
# maps_controller.rb
|
||||||
|
# @date Apr 25, 2012
|
||||||
|
# @author ricky barrette <rickbarrette@gmail.com>
|
||||||
|
#
|
||||||
|
# Copyright 2012 Rick Barrette
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# This controller class will handler incomming http requests containing new exception reports.
|
||||||
|
# When a new exception report is recieved, it will be compared to existing bug issues.
|
||||||
|
# If there is a match, the existing issue will be updated
|
||||||
|
# if not a new bug issue will be generated.
|
||||||
|
class MapsController < ApplicationController
|
||||||
|
unloadable
|
||||||
|
|
||||||
|
def index
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
end #EOF
|
||||||
@@ -1,3 +1,25 @@
|
|||||||
|
# map.rb
|
||||||
|
# @date Apr 25, 2012
|
||||||
|
# @author ricky barrette <rickbarrette@gmail.com>
|
||||||
|
#
|
||||||
|
# Copyright 2012 Rick Barrette
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# This controller class will handler incomming http requests containing new exception reports.
|
||||||
|
# When a new exception report is recieved, it will be compared to existing bug issues.
|
||||||
|
# If there is a match, the existing issue will be updated
|
||||||
|
# if not a new bug issue will be generated.
|
||||||
class Map < ActiveRecord::Base
|
class Map < ActiveRecord::Base
|
||||||
unloadable
|
unloadable
|
||||||
end
|
end
|
||||||
|
|||||||
20
app/views/maps/index.html.erb
Executable file
20
app/views/maps/index.html.erb
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
<h1>Exception Handler Maps</h1>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<!-- TODO uploader action -->
|
||||||
|
<form action="XXX" method="post" enctype="multipart/form-data">
|
||||||
|
<label for="package">Package:</label>
|
||||||
|
<br/>
|
||||||
|
<input name="package" id="package" type="text" maxlength="5555500" size=50%/>
|
||||||
|
<br/>
|
||||||
|
<label for="package">Build:</label>
|
||||||
|
<br/>
|
||||||
|
<input name="build" id="build" type="text" maxlength="5555500" size=50%/>
|
||||||
|
<br/>
|
||||||
|
<label for="file">File:</label>
|
||||||
|
<br/>
|
||||||
|
<input type="file" name="file" id="file" accept="text/plain" />
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<input type="submit" name="submit" value="Submit" />
|
||||||
|
</form>
|
||||||
@@ -1,3 +1,26 @@
|
|||||||
|
# routes.rb
|
||||||
|
# @date Apr 19, 2012
|
||||||
|
# @author ricky barrette <rickbarrette@gmail.com>
|
||||||
|
#
|
||||||
|
# Copyright 2012 Rick Barrette
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# This controller class will handler incomming http requests containing new exception reports.
|
||||||
|
# When a new exception report is recieved, it will be compared to existing bug issues.
|
||||||
|
# If there is a match, the existing issue will be updated
|
||||||
|
# if not a new bug issue will be generated.
|
||||||
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'
|
||||||
|
map.connect '/maps', :controller => 'maps', :action => 'index'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user