can you show us the piece of code you using to handle the success case?
flash is an hash with very useful entries:
inside your controller you should be doing something like:
flash[:error] = object.errors
or something like that if you pass us your controller code it would be easier to help you and what is that you doing on the case of no success.