2010-05-10 22:39:52 +00:00
|
|
|
module Admin
|
|
|
|
class AccountsController < BaseController
|
|
|
|
|
|
|
|
sections 'settings'
|
|
|
|
|
|
|
|
def new
|
|
|
|
@account = Account.new(:email => params[:email])
|
|
|
|
end
|
|
|
|
|
|
|
|
def create
|
2010-07-13 00:46:17 +00:00
|
|
|
@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
|
2010-05-10 22:39:52 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|