Class: WatchersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/watchers_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#stored_location_for

Instance Method Details

#destroyObject


14
15
16
17
18
# File 'app/controllers/watchers_controller.rb', line 14

def destroy
  app.watchers.delete(watcher)
  flash[:success] = "That's sad. #{watcher.label} is no longer watcher."
  redirect_to root_path
end