Change scaffold redirects - D4uS1/ez-on-rails GitHub Wiki
Change scaffold redirects
The EzOnRails::ResourceController has the protected methods after_create_path, after_update_path and after_destroy_path.
Those methods can be overriden to change the targets after the actions are executed succesfull.
class ArticlesController < EzOnRails::ResourceController
...
protected
def after_create_path
some_special_after_create_path
end
def after_update_path
some_special_after_update_path
end
def after_destroy_path
some_special_after_destroy_path
end
end