Sha256: 6ae0297f96cd0825e5e79f31c86570bd3113d8b994e57d3461ca2086f2795a09

Contents?: true

Size: 273 Bytes

Versions: 1

Compression:

Stored size: 273 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 contacts_path
    else
      render action: :new
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pixelforce_cms-0.9.9.1 lib/generators/pixelforce_cms/templates/contacts_controller.rb