Skip to content

Instantly share code, notes, and snippets.

@rgo
Created July 6, 2009 14:59
Show Gist options
  • Save rgo/141473 to your computer and use it in GitHub Desktop.
Save rgo/141473 to your computer and use it in GitHub Desktop.
class ContactController < ApplicationController
def index
# render index.html.erb
end
def create
@contact = Contact.new(params[:contact])
if @contact.valid?
Notifications.deliver_contact(params[:contact])
#flash[:notice] = 'Email enviado correctamente'
@contact=nil
end
render :action => 'index'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment