Just started going through the rails in four days tutorial (after major set-up / install issues..) and it's telling me about this flash feature, which lets you "flash" a message to the user which then fades away (have definately seen this on 37 sigs products) only thing is, mine ain't flashing... they just stay there... i'm guessing the flash come from the effects / prototype librarys right? do i have to include them in my layout.rhtml or do i have to do something else? just curious is all...
on 2005-12-06 00:52
on 2005-12-06 01:31
on 2005-12-06 05:59
The flash stays in the session until the next request. If you set flash and you do not redirect_to, you will see it stay. In this case you should use flash.now[:message] Kent.
on 2005-12-06 09:53
oh ok i think i get it, so flash is like a way of sendng messages between "states" like an edit then return to list ???? How would i ajax-ify this behaviour then, or is that a ruby on rails no no (i'm still fairly new to ror)