Skip to content

Commit 46150f8

Browse files
committed
simple demo of flash messages
1 parent 3baf75f commit 46150f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ class ApplicationController < ActionController::Base
88
private
99

1010
def show_flash
11-
flash[:success] = "Found the about page!" if request.path == '/pages/about'
11+
flash.now[:notice] = "Found the about page!" if request.path == '/pages/about'
1212
end
1313
end

0 commit comments

Comments
 (0)