Hi, before_create_save is nt meant to check if something is right or wrong with a record. I think intention was to give an option to do something in addition.
Therefore it s not comparable to a validation callback in activerecord, which might interupt saving process. ActiveScaffold will only show flash messages in case of a failed create and I think in your case activescaffold created successfully your record. -- Volker On 18 Okt., 00:55, Iñaki Baz Castillo <[email protected]> wrote: > Hi, I use "before_create_save()" and want to display a flash if something is > wrong. > I expected that using: > > flash[:notice] = "lalalala" > > would work. However the flash is not displayed at all. > > Is it activescaffold ready for displaying flash messages? > > Thanks. > > -- > Iñaki Baz Castillo <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
