Sha256: a6f611893d32d4a2af1ce219494dfa41bfca7a576f5892d94d61ae66f970f878
Contents?: true
Size: 383 Bytes
Versions: 10
Compression:
Stored size: 383 Bytes
Contents
class ContactUs::ContactsController < ApplicationController def create @contact = ContactUs::Contact.new(params[:contact_us_contact]) if @contact.save redirect_to('/', :notice => t('contact_us.notices.success')) else flash[:error] = t('contact_us.notices.error') render :new end end def new @contact = ContactUs::Contact.new end end
Version data entries
10 entries across 10 versions & 1 rubygems