Sha256: 3aa0b9639ca86aeb270ad88058c738e42366447a8e17238c6bcc1f9c84b5e6aa

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

module Admin
  class AccountsController < BaseController
    
    sections 'settings'
    
    def new
      @account = Account.new(:email => params[:email])
    end
    
    def create
      @account = Account.create(params[:account])
      current_site.memberships.create(:account => @account) if @account.errors.empty?
      
      respond_with @account, :location => edit_admin_current_site_url
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locomotive_cms-0.0.3.3 app/controllers/admin/accounts_controller.rb
locomotive_cms-0.0.3.1 app/controllers/admin/accounts_controller.rb