Forum: Ruby on Rails Observer method names

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5201e306c37562746a8cdeebe24bef32?d=identicon&s=25 Jose Hales-Garcia (Guest)
on 2006-04-27 01:14
I haven't seen it documented anywhere, but can observer methods be given
a prefix in their name like 'after_' followed by my controller's method
name?

For instance I have a couple of methods called 'create' and
'create_reply'.  Can I have 'after_create' and 'after_create_reply' in
my observer class and expect it to work?

Jose
This topic is locked and can not be replied to.