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

Version Path
contact_us-0.3.0 app/controllers/contact_us/contacts_controller.rb
contact_us-0.2.1 app/controllers/contact_us/contacts_controller.rb
contact_us-0.2.0 app/controllers/contact_us/contacts_controller.rb
contact_us-0.1.5 app/controllers/contact_us/contacts_controller.rb
contact_us-0.1.4 app/controllers/contact_us/contacts_controller.rb
contact_us-0.1.3 app/controllers/contact_us/contacts_controller.rb
contact_us-0.1.2 app/controllers/contact_us/contacts_controller.rb
contact_us-0.1.1 app/controllers/contact_us/contacts_controller.rb
contact_us-0.1.0 app/controllers/contact_us/contacts_controller.rb
contact_us-0.0.8 app/controllers/contact_us/contacts_controller.rb