You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After successful update on User model, it should redirect to show and display flash[:notice] (or just notice).
Actual behavior
Redirect works fine, but flash does not show up. Instead, browser url bar has some GET style querystring, e.g., localhost:3000/users?notice=User+saved%21
However, if I set flash in separate line (e.g., flash[:notice] = 'User saved!') and remove notice param in redirect_to, flash notice displays properly.
System configuration
Rails version: 5.1.2
Ruby version: 2.4.1p111
The text was updated successfully, but these errors were encountered:
Steps to reproduce
users_controller.rb
application.html.slim
Expected behavior
After successful update on
User
model, it should redirect toshow
and displayflash[:notice]
(or justnotice
).Actual behavior
Redirect works fine, but flash does not show up. Instead, browser url bar has some GET style querystring, e.g.,
localhost:3000/users?notice=User+saved%21
However, if I set flash in separate line (e.g.,
flash[:notice] = 'User saved!'
) and removenotice
param inredirect_to
, flash notice displays properly.System configuration
Rails version: 5.1.2
Ruby version: 2.4.1p111
The text was updated successfully, but these errors were encountered: