Flash messages in RoR
I was following the Rails 2 book from Sitepoint and I had the code copied 1 to 1 to my development machine, however now the flash[:notice] messages do not appear. They always stay blank? though in the controller they are set.
Any ideas why they don't show?
What do you get if you put this in the middle of a page?
<%= flash[:notice] %>
absolutely nothing.I even have div tag and when I check the source code the div is of course there, but the flash is not. If I do check with blank? it is true though the controller is setting it?!
Originally Posted by ReggieB
the div and the flash are in application html erb in views layouts
Can you post the code from one of your controller methods that should be generating content in flash[:notice] please.
I can not submit code because the forum would not let me, because of spam or something I dont have 10 posts yet ?!?!?!?!
however I think that I was setting somehow wrong path in the redirect, because on one of the controllers worked!
I will check again