Created
February 2, 2012 15:13
-
-
Save coderforhire/1723917 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError (undefined method `email' for nil:NilClass): | |
app/mailers/notify_mailer.rb:8:in `new_email' | |
app/controllers/tickets_controller.rb:58:in `create' |
2012-02-02 09:32
', "updated_at" = '2012-02-02 15:33:36.317471' WHERE "tickets"."id" = 3
(0.3ms) COMMIT
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1"]]
Client Load (0.2ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = $1 LIMIT 1 [["id", "1"]]
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
Completed 500 Internal Server Error in 8ms
NoMethodError (undefined method email' for nil:NilClass): app/mailers/notify_mailer.rb:17:in
update_email'
app/controllers/tickets_controller.rb:72:in block in update' app/controllers/tickets_controller.rb:67:in
update'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ticket.save
NotifyMailer.new_email(@user,@client).deliver
flash[:notice] = "Thanks for submitting your ticket!"
redirect_to tickets_open_path