Browse Source

add dashboard

main
Christoph Marzell 1 month ago
parent
commit
064472d452
  1. 5
      app/controllers/dashboards_controller.rb

5
app/controllers/dashboards_controller.rb

@ -34,6 +34,9 @@ class DashboardsController < ApplicationController
0 0
end end
@last_entry = current_user.entries.order(date: :desc).first
@last_entry = current_user.entries
.where('date <= ?', Date.today)
.order(date: :desc)
.first
end end
end end
Loading…
Cancel
Save