How to call the Rails Mountable Engine method from a Rails application?

Mounted motor controller method:

module ServiceApi module Api module V1 class RequestorController < ApplicationController def get_details(query_parameters) #some code here end end end end end 

Rails app Controller Call get_details(params) method from Mountable Engine

 ServiceApi::Api::V1::RequestorController.new.get_details(params) 
+8
ruby-on-rails ruby-on-rails-3 ruby-on-rails-4
source share

No one has answered this question yet.

See similar questions:

6
Rails model for invoking a controller action

or similar:

1339
How can I rename a database column in a Ruby on Rails migration?
596
How to use problems in Rails 4
426
How to call controller / view methods from console in Ruby on Rails?
363
Separate server and client REST JSON API?
6
Rails mounted engine and overriding another engine
2
Rails 3 mount engine missing secure_from_forgery call in ApplicationController
one
calling the application controller method from the engine
one
mounting rails ActiveAdmin engine inside the mounted engine
0
How to restart assistants on a rail mounted engine
0
The correct way to inherit in a Rails mounted engine

All Articles