Sha256: ec740df29bcbd1cd7ecfd3c05f522e4e6a267392fe6401cc0c7fff06ee5bea3f

Contents?: true

Size: 426 Bytes

Versions: 17

Compression:

Stored size: 426 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_url
    end

  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
locomotive_cms-2.0.3 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.2 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.1 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0 app/controllers/locomotive/accounts_controller.rb
tribeca_cms-0.1.1 app/controllers/locomotive/accounts_controller.rb
tribeca_cms-2.0.0.rc12 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc12 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc11 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc10 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc9 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc8 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc7 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc6 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc5 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc4 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc2 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.0.0.rc1 app/controllers/locomotive/accounts_controller.rb