<%= flash[:notice] %>
+ <% end %>
<%= yield %>
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index b49d6a9..d8c47be 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -11,6 +11,7 @@ def edit def update if current_user.update(user_params) + flash[:notice] = "Profile updated" redirect_to user_path else render :edit diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index a609264..9890614 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -30,6 +30,9 @@ <% end %>