Sha256: 13b9a7d93f237dce64ad20374c64e4b4093e7816920354c8e6fc993e41ab3c5f

Contents?: true

Size: 417 Bytes

Versions: 18

Compression:

Stored size: 417 Bytes

Contents

module Locomotive
  class AccountsController < BaseController

    sections 'settings'

    def new
      @account = Account.new(email: params[:email])
      respond_with @account
    end

    def create
      @account = Account.create(params[:account])
      current_site.memberships.create(account: @account) if @account.errors.empty?
      respond_with @account, location: edit_current_site_path
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.6 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.6.rc2 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.6.rc1 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.5 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.4 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.3 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.2 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.1 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.0 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.0.rc3 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.0.rc2 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.5.0.rc1 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.4.1 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.4.0 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.3.1 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.3.0 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.2.3 app/controllers/locomotive/accounts_controller.rb