I have discovered a problem.
flash [: notice] = "...." works correctly on the create action, redirecting the show action.
I forgot that my "show" consists of redirecting to editing.
I fixed this by doing the show action as follows:
def show
redirect_to edit_subscription_path(@subscription),flash
end
From Rails 3.1 on, this should be done with
def show
flash.keep
redirect_to edit_subscription_path(@subscription)
end
source
share