From d7419530ddbc1eff4ff92eaa29f91b5391bdb1c7 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Wed, 25 Apr 2012 13:12:47 -0400 Subject: [PATCH] Added a form for uploading maps also added license to all files, and created LICENSE refs #16 --- LICENSE | 13 +++++++++++++ app/controllers/maps_controller.rb | 30 ++++++++++++++++++++++++++++++ app/models/map.rb | 22 ++++++++++++++++++++++ app/views/maps/index.html.erb | 20 ++++++++++++++++++++ config/routes.rb | 23 +++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 LICENSE create mode 100755 app/controllers/maps_controller.rb create mode 100755 app/views/maps/index.html.erb diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..36b0aac --- /dev/null +++ b/LICENSE @@ -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. diff --git a/app/controllers/maps_controller.rb b/app/controllers/maps_controller.rb new file mode 100755 index 0000000..13812a2 --- /dev/null +++ b/app/controllers/maps_controller.rb @@ -0,0 +1,30 @@ +# maps_controller.rb +# @date Apr 25, 2012 +# @author ricky barrette +# +# 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 diff --git a/app/models/map.rb b/app/models/map.rb index 62e00d7..fa74131 100644 --- a/app/models/map.rb +++ b/app/models/map.rb @@ -1,3 +1,25 @@ +# map.rb +# @date Apr 25, 2012 +# @author ricky barrette +# +# 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 unloadable end diff --git a/app/views/maps/index.html.erb b/app/views/maps/index.html.erb new file mode 100755 index 0000000..6a80a5f --- /dev/null +++ b/app/views/maps/index.html.erb @@ -0,0 +1,20 @@ +

Exception Handler Maps

+
+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
diff --git a/config/routes.rb b/config/routes.rb index f8f7ca2..8b264a9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,26 @@ +# routes.rb +# @date Apr 19, 2012 +# @author ricky barrette +# +# 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| map.connect '/exceptionhandler', :controller => 'exceptionhandler', :action => 'index' + map.connect '/maps', :controller => 'maps', :action => 'index' end