JannaB wrote ... > in my model I have an: > > after_save :do_something > > but what I really want is for do_something to be executed when I > create or update the model via active_scaffold (and not, just in the > course of being an ActiveRecord). How do I do this? -Janna B
Define an after_create_save method in your controller as described in the docs. http://wiki.github.com/activescaffold/active_scaffold/api-create http://wiki.github.com/activescaffold/active_scaffold/api-update --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
