Sha256: 13b9a7d93f237dce64ad20374c64e4b4093e7816920354c8e6fc993e41ab3c5f
Contents?: true
Size: 417 Bytes
Versions: 18
Compression:
Stored size: 417 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_path end end end
Version data entries
18 entries across 18 versions & 1 rubygems