On Martes, 20 de Octubre de 2009 17:23:37 Iñaki Baz Castillo escribió: > El Martes, 20 de Octubre de 2009, [email protected] escribió: > > 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. > > Ok, does it mean that I can use the flash method into an ActiveRecord > validation and it would be displayed in activescaffold?
flash cannot be used in a model. You can see what keys are used by ActiveScaffold in frontend/default/views/_messages.html.erb -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [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 -~----------~----~----~----~------~----~------~--~---
