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 %>Successfully saved!
+<%= message %>