From 2513933d01565f65938197b1707bc2ed8c2692c3 Mon Sep 17 00:00:00 2001 From: Miguel Michelson Date: Fri, 11 Aug 2023 00:49:32 -0400 Subject: [PATCH] app notice + fix users controller --- app/controllers/users_controller.rb | 2 +- app/views/layouts/application.html.erb | 3 --- app/views/shared/_flash.html.erb | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 756d28d..62cf785 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -13,7 +13,7 @@ def tracks # @collection = @user.tracks.page(params[:page]).per(2) if current_user @collection = User.track_preloaded_by_user(current_user&.id) - where(user_id: @user.id ) + .where(user_id: @user.id ) .order("id desc") .page(params[:page]).per(2) else diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index da85597..abd971a 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -19,9 +19,6 @@ <%= render "shared/user_menu" %> -

<%= notice %>

-

<%= alert %>

- <%= yield %>
diff --git a/app/views/shared/_flash.html.erb b/app/views/shared/_flash.html.erb index a0c5069..8c302e2 100644 --- a/app/views/shared/_flash.html.erb +++ b/app/views/shared/_flash.html.erb @@ -31,7 +31,7 @@
-

Successfully saved!

+

<%= message %>