Hello all,
I have a module that contains a class as following
my_module.rb
Hello all,
I have a module that contains a class as following
my_module.rb
write the module in its helper and call it whenever you needed it
If it is a class, why are you encapsulating it inside a module? You should be able to put the class rb file in your lib directory and use it in your controller. Make sure you name the file right. Again if you need to namespace it inside a module, just include the module in your controller using a "include ModuleName;" This will remove the need to do Module::Class every time. You can just use the ClassName afterwards, you don't need to box it with a ModuleName::ClassName