...or in the model, since he said that nothing get's deleted, he should override destroy in each model, in order to ensure that nothing get's deleted.
Or even better, i would make a module with this implementation, and then extend it in each model. On May 5, 6:15 pm, Kenny Ortmann <[email protected]> wrote: > All that this does is exclude the delete function. > > If you want to change the functionality of the delete all you have to do is > override the destroy method in your controller. > > On Tue, May 5, 2009 at 3:12 PM, JannaB <[email protected]> wrote: > > > Answering my own q here in case someone searches on these issues here > > in the future (this is really easier than I thought): In my > > controller: > > > active_scaffold :<my model> do |config| > > config.actions.exclude :delete > > config.actions.swap :search, :live_search > > end > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
