From 8046b9b25b87c3ffcf944d49e513f3a92dd53d31 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Tue, 19 Mar 2013 15:05:58 +0000 Subject: [PATCH] Create new feeds in the context of this layer --- app/controllers/layers_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/layers_controller.rb b/app/controllers/layers_controller.rb index 430a7ae..b69537d 100644 --- a/app/controllers/layers_controller.rb +++ b/app/controllers/layers_controller.rb @@ -14,6 +14,8 @@ class LayersController < ApplicationController # GET /layers/1.json def show @layer = Layer.find(params[:id]) + @feed = Feed.new + @feed.new_layer_id = @layer.id respond_to do |format| format.html # show.html.erb