Created
January 31, 2012 19:39
-
-
Save coderforhire/1712474 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
| def create | |
| @ticket = Ticket.new(params[:ticket]) | |
| @user = User.find(params[:user_id]) | |
| @ticket.save | |
| NotifyMailer.notify_email(@user).deliver | |
| flash[:notice] = "Thanks for submitting your ticket!" | |
| redirect_to tickets_open_path | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Request
Parameters:
{"utf8"=>"✓",
"authenticity_token"=>"aUD3S3gud6SDMxycSTMWqEz3i4/2rN/qrODQ3i9d27c=",
"ticket"=>{"email"=>"afresta@gmail.com",
"subject"=>"Audio",
"client_id"=>"1",
"branch_id"=>"",
"body"=>"asdfasdf",
"user_id"=>"1"},
"commit"=>"Create Ticket"}