This is fine approach, but it will display errors mixed with warnings in no particular order, and that is not good in my opinion. I prefer messages sorted in order of decreasing severity: [:error, :warning, :notice, :message]
I have some code that does it, but I written it at the very beginning of studying ruby/rails, so I will not posit it here, it is not pretty ;)
Does anyone have the problem where the flash message stays on the page one reload more than it is supposed to?
So if you reload the page, the flash message is still there, but it goes away after a second reload.
Its a problem because if you carry out an action and you get an error, then do it again and get a success message, the previous message is displayed on the page at the same time as the current one.
@austin_web_developer You can fix this by using flash.now[:notice] instead of flash[:notice]. I wrote a blog post explaining how the flash hash works: http://travisonrails.com/2008/08/17/Working-with-the-flash-hash"
Nike Air Max 90 <a href="http://www.airmax-shox.com/en/category/7-air-max-90.html">Nike Air Max 90</a>
Air Max 90 <a href="http://www.airmax-shox.com/en/category/7-air-max-90.html">Air Max 90</a>
Nike Max 90 <a href="http://www.airmax-shox.com/en/category/7-air-max-90.html">Nike Max 90</a>
http://www.thejordanjumpman.com/ nike air max http://www.airmax-warehouse.com/ Nike Air Structure Triax 91 http://www.sneakers2world.com/ Nike Air Max Tailwind 92 http://www.nikeairmax2u.com/ Nike Air Max Lebron VII http://www.thesneakerspoint.com/ Nike Air Max ACG Foamdome
Having trouble with flash.. with flash[:notice] or the method shown here, any use of flash causes a 'stack level too deep' error. Is there any way to clear the flash ? I assume this would clear the error.
Bob
I am trying to download this awesome template and it doesn’t seem to be working . . .
I think i have same problem too, but i see there is no admin or support to reply our comment :)
Мда - действительно неплохо, лично мне очень даже понравилось!!!
Я был приятно удивлен, как автор легко пишет обо всем, что его интересует. В этом что-то есть!







