How do I call the create method of b_controller from a_controller?
Hi, you can do the following:
class BController < ActionController::Base
def create( … )
…
end
end
class AController < ActionController::Base
def example_method
b_controller = BController.new
b_controller.create( … )
end
end
For additional examples of OOP in Ruby, please consult any of the available Ruby books.
Good luck,
-Conrad