fixed a few problems with mappings_controller.rb
This commit is contained in:
parent
a55fc2242c
commit
4e5fb95c7e
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
<h1>Mapping#new</h1>
|
||||
<p>Find me in app/views/mapping/new.html.erb</p>
|
Loading…
Reference in a new issue