1
0
Fork 0
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:
Josh Pigford 2024-02-02 15:31:32 -06:00
parent 57e42cb8cb
commit fed010e202
6 changed files with 58 additions and 29 deletions

View file

@ -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