fixed a few problems with mappings_controller.rb

This commit is contained in:
Devin Howard 2013-02-28 20:16:04 -05:00
parent a55fc2242c
commit 4e5fb95c7e
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -1,2 +0,0 @@
<h1>Mapping#new</h1>
<p>Find me in app/views/mapping/new.html.erb</p>