> If you have any alternate solution, please provide.
I didn't go the plugin route in our application, but opted for a form of
"behavior by convention"
class GenericController < ApplicationController
# here's the standard index method
def index
blah blah blah
end
# here's a new common method for all controllers
def common_action
moo moo moo
end
end
class Project < GenericController
# inherits the "common_action" action
# and if need be (if Project truly needs behavior different from
# the 'standard' we have for our app
def index
# non-standard behavior for this class
blah blah blah
end
end
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---