Sha256: 49fe53055940396f110e8713b521614fb71607706c1db1e8a62a26b779af214f

Contents?: true

Size: 272 Bytes

Versions: 15

Compression:

Stored size: 272 Bytes

Contents

class ContactsController < ApplicationController

  def new
    @contact_us = ContactUs.new
  end

  def create
    @contact_us = ContactUs.new params[:contact_us]
    if @contact_us.save
      redirect_to contact_path
    else
      render action: :new
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pixelforce_cms-2.6 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-2.5 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-2.4 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-2.3 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-2.2 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-2.0 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-1.0 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-0.9.9.9 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-0.9.9.8 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-0.9.9.7 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-0.9.9.6 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-0.9.9.5 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-0.9.9.4 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-0.9.9.3 lib/generators/pixelforce_cms/templates/contacts_controller.rb
pixelforce_cms-0.9.9.2 lib/generators/pixelforce_cms/templates/contacts_controller.rb