about summary refs log tree commit diff stats
path: root/app/controllers/admin/streams_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/streams_controller.rb')
-rw-r--r--app/controllers/admin/streams_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/streams_controller.rb b/app/controllers/admin/streams_controller.rb index 86dec06..91ecc31 100644 --- a/app/controllers/admin/streams_controller.rb +++ b/app/controllers/admin/streams_controller.rb
@@ -30,7 +30,7 @@ class Admin::StreamsController < Admin::AdminController
30 def update 30 def update
31 @stream = Stream.find(params[:id]) 31 @stream = Stream.find(params[:id])
32 32
33 if @stream.update_attributes(stream_params) 33 if @stream.update(stream_params)
34 flash.notice = "Stream updated successfully!" 34 flash.notice = "Stream updated successfully!"
35 else 35 else
36 flash.alert = "Error updating stream." 36 flash.alert = "Error updating stream."
@@ -42,7 +42,7 @@ class Admin::StreamsController < Admin::AdminController
42 private 42 private
43 43
44 def stream_params 44 def stream_params
45 params.require(:stream).permit(:title, :body, :slug, records_attributes: [:description, :_destroy]) 45 params.require(:stream).permit(:title, :body, :slug, :tag_list, records_attributes: [:description, :_destroy])
46 end 46 end
47 47
48 def set_section 48 def set_section