フォルダー内にクラスTest
がありlib
、このクラスのオブジェクトをコントローラークラス名のメソッド内で動的に作成したいと考えていますclass UsersController < ApplicationController
。これどうやってするの?
何かのようなもの
class UsersController < ApplicationController
def address
{"here I want to create the object of Test class"}
end
end