In my save function in my (ajax!!!) controller, i’ve got a bit like
this:
if …
flash[:notice] = ‘NOT SAVED: This month is locked’
render :partial => ‘edit’
else
save it…
redirect to ‘show’ action…
…
If i try to save an entry for a locked month, it correctly brings me
back to
my edit action with the ‘not saved’ message correctly showing. But if i
then go to another page, the ‘not saved’ message still shows! But then
if i refresh, it disappears.
It seems the flash notice sticks around one too many page views. Any
Ideas?