Progress
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
class Settings::ExpensesController < Admin::BaseController
|
||||
def index
|
||||
@ammount = Redis.current.get("monthly_funding_ammount") || 0
|
||||
@amount = Redis.current.get("monthly_funding_amount") || 0
|
||||
end
|
||||
|
||||
def create
|
||||
Redis.current.set("monthly_funding_ammount", params[:ammount])
|
||||
Redis.current.set("monthly_funding_amount", params[:amount])
|
||||
redirect_to settings_expenses_path
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user