Class: Locomotive::AccountsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Locomotive::AccountsController
- Defined in:
- app/controllers/locomotive/accounts_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
12 13 14 15 16 17 |
# File 'app/controllers/locomotive/accounts_controller.rb', line 12 def create 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 Membership @account = Account.new(email: params[:email]) respond_with @account end |