mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Credit start
This commit is contained in:
parent
57e42cb8cb
commit
fed010e202
6 changed files with 58 additions and 29 deletions
|
@ -1,10 +1,6 @@
|
|||
class AccountsController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
@accounts = current_family.accounts
|
||||
end
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
|
@ -12,6 +8,10 @@ class AccountsController < ApplicationController
|
|||
@account = Depository.new
|
||||
end
|
||||
|
||||
def new_credit
|
||||
@account = Credit.new
|
||||
end
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
|
@ -20,7 +20,7 @@ class AccountsController < ApplicationController
|
|||
@account.family = current_family
|
||||
|
||||
if @account.save
|
||||
redirect_to accounts_path
|
||||
redirect_to root_path
|
||||
else
|
||||
render :new
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue