From 4e5fb95c7e53b6bcd10898add101d5427d2bdd9a Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 28 Feb 2013 20:16:04 -0500 Subject: [PATCH] fixed a few problems with mappings_controller.rb --- app/controllers/mappings_controller.rb | 4 ++-- app/views/mapping/new.html.erb | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 app/views/mapping/new.html.erb diff --git a/app/controllers/mappings_controller.rb b/app/controllers/mappings_controller.rb index 8160c6e3..f93babf8 100644 --- a/app/controllers/mappings_controller.rb +++ b/app/controllers/mappings_controller.rb @@ -1,4 +1,4 @@ -class MappingController < ApplicationController +class MappingsController < ApplicationController # GET mappings def index end @@ -26,7 +26,7 @@ class MappingController < ApplicationController @topic = Topic.find(params[:topic][:id]) @mapping.topic = @topic end - else if params[:synapse] + elsif params[:synapse] if params[:synapse][:id] @topic = Synapse.find(params[:synapse][:id]) @mapping.synapse = @synapse diff --git a/app/views/mapping/new.html.erb b/app/views/mapping/new.html.erb deleted file mode 100644 index 6fba56ad..00000000 --- a/app/views/mapping/new.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Mapping#new

-

Find me in app/views/mapping/new.html.erb