Skip to content

Instantly share code, notes, and snippets.

@CamonZ
Created November 3, 2012 16:25
Show Gist options
  • Save CamonZ/c33050ed3999b89b2991 to your computer and use it in GitHub Desktop.
Save CamonZ/c33050ed3999b89b2991 to your computer and use it in GitHub Desktop.
example
class UsersController < ApplicationController
def create
@user = User.create!(params[:user])
Notifier.send_welcome(@user.id)
Notifier.notify_admin_of_new_member(@user.id)
rescue ActiveRecord::RecordInvalid
render 'new'
end end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment