select today when no day param
This commit is contained in:
parent
2285ef2a97
commit
1a6d60943a
1 changed files with 1 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
class MoodsController < ApplicationController
|
||||
def index
|
||||
@user = Current.user
|
||||
redirect_to dashboard_path(day: Date.today) unless params[:day]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue