Topic: newbie module question
I'm trying to play with modules. I have a file job_score.rb which lives in the controllers directory and contains:
CONST = 'foo'
I have the following lines in people_controller.rb (created by generating a scaffold):
@person.region = JobScore::CONST
@person.region = JobScore.compute_region
The first one assigns 'foo' to region.
The second line gives:
undefined method `compute_region' for JobScore:Module
Application Trace | Framework Trace | Full Trace
I seem to be missing something very basic.