How to call action method of active record from active resource?
I have a web service and for that I made two applications called backend and frontend, frontend is active resource client, I want to call custom action method of backend's controller from custom action method of frontend's controller, I am new in ROR.

 frontend controller:

class ProductsController < ApplicationController
 
 def my_method

    # call custion action of backend's controller 

 end
.....

end

 backend controller:

class ProductsController < ApplicationController

 def my_method

 # my code go here

 end

end

Any help would be greatly appreciated.
How to call action method of active record from active resource?
===

I have a web service and for that I made two applications called backend and frontend, frontend is active resource client, I want to call custom action method of backend's controller from custom action method of frontend's controller, I am new in ROR.

 frontend controller:

class ProductsController < ApplicationController
 
 def my_method

    # call custion action of backend's controller 

 end
.....

end

 backend controller:

class ProductsController < ApplicationController

 def my_method

 # my code go here

 end

end

Any help would be greatly appreciated.