summaryrefslogtreecommitdiff
path: root/app/controllers/alerts_controller.rb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-26 20:35:43 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-26 20:35:43 -0400
commit2d0fe1a4197e70cb99f4285a8b32a645914d8beb (patch)
treea1d4270924d24dd441bbd95db980952ea83d9223 /app/controllers/alerts_controller.rb
parent78df502c74525cee987e551fc82e91595e63ed01 (diff)
Wrote a script the start the server called start deleted the old one. The new one has 2 flag options -c and -s these correspond to starting the console or server respectively.
Diffstat (limited to 'app/controllers/alerts_controller.rb')
-rw-r--r--app/controllers/alerts_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/alerts_controller.rb b/app/controllers/alerts_controller.rb
index 6ab3663..1d09864 100644
--- a/app/controllers/alerts_controller.rb
+++ b/app/controllers/alerts_controller.rb
@@ -24,6 +24,11 @@ class AlertsController < ApplicationController
def create
@alert = Alert.new(alert_params)
@alert.author = current_user
+ users = {}
+ users = Users.all
+
+ #current_user.send_message(users, @alert.message, "Pay Attention!")
+
respond_to do |format|
if @alert.save
format.html { redirect_to @alert, notice: 'Alert was successfully created.' }