require module in controller

I have some calculations in a module that is under the /lib folder -
but when using require the action of the module is not found in the
controller. Does anyone have an example of the correct syntax to get
this working. Thanks

It should work, and if the name of the file follows Rails conventions you don't even need an explicit require.

You may be overlooking something in your very Ruby code, like forgetting to mixin the module in the controller, or trying to use a module method that is actually defined as an instance method.

-- fxn

yeah, I know I'm missing something, that is why I was hoping for a
brief code example (ie I'm not sure what is the "Rails conventions" on
this.

Hi John,

Did you miss out any of the steps below?

calculator.rb