Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
parterburn committed Oct 22, 2024
1 parent ea9b2bf commit e6686ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/welcome_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class WelcomeController < ApplicationController
def index
@total_entries = Entry.count
redirect_to latest_entry_path if user_signed_in?
end
end
6 changes: 5 additions & 1 deletion app/views/welcome/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
%p
= image_tag "baby.jpg", style: "width: 300px; max-width: 100%;"
.center
%h4
%p Read about Dabble Me in...
Expand All @@ -108,3 +107,8 @@
.clearfix
%br
%br
.row
.col-md-12.center
%h4
Total number of entries: #{format_number(@total_entries)}

0 comments on commit e6686ee

Please sign in to comment.