search for: get_contact

Displaying 1 result from an estimated 1 matches for "get_contact".

Did you mean: en_contact
2006 Jun 05
1
Action Mailer contact form
...g and was hoping someone could point me in the right direction. Thanks. ==================================================== 1. class ContactController < ApplicationController 2. 3. def send_msg 4. @contact = Contact.new(params[:contact]) 5. if @contact.valid? 6. contact = get_contact 7. email = ContactMailer.create_confirm(contact) 8. render(:text => "<pre>" + email.encoded + "<pre>") 9. flash[:notice] = "Message Sent" 10.# redirect_to :action => ''index'' 11. else 12. render :action =&g...