Answer the question
In order to leave comments, you need to log in
How to create a new flash in Ruby on Rails???
In the controller I create flash.now[:success]
And in the view I write if success ... , an error is displayed.
How to decide?
Answer the question
In order to leave comments, you need to log in
In the view, use flash[:success] and not success
api.rubyonrails.org/classes/ActionDispatch/Flash.html
And if you get an error, then show it here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question