Class: Locomotive::AccountsController
Instance Method Summary
collapse
#current_site_public_url, #public_page_url
Instance Method Details
#create ⇒ Object
12
13
14
15
16
17
|
# File 'app/controllers/locomotive/accounts_controller.rb', line 12
def create
authorize Membership
@account = Account.create(account_params)
service.create(@account) if @account.errors.empty?
respond_with @account, location: edit_current_site_path(current_site)
end
|
#new ⇒ Object
6
7
8
9
10
|
# File 'app/controllers/locomotive/accounts_controller.rb', line 6
def new
authorize Membership
@account = Account.new(email: params[:email])
respond_with @account
end
|