Is it really in all of your .erb files? In a layout file?
If I understand correctly, you’re expecting it to show the error on the
welcome page, yes? If so, is the flash stuff in the Welcome.html.erb
file, or the layout it uses?
in the case of invalid login, the method bellow does nothing at
flash[:error], just goes directly to =>welcome page.
is something missing something?
How is the “welcome” action in your “main” controller defined? What
entries are there in your log file during invalid login processing (at
least processing, parameter and rendering lies)?
If I understand correctly, you’re expecting it to show theerroron the
welcome page, yes? If so, is theflashstuff in the Welcome.html.erb
file, or the layout it uses?
theflashstuff has to be on the destination page, welcome.html.erb in
this case.
theflashstuff goes on the same page when the action is to itself.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.