Undefined local variable or method `logger'

I have a helper module /lib/foo_helper.rb. It works fine but any calls
to logger result in:

undefined local variable or method `logger’

how can I get access to the logger here? (it works from my model

RAILS_DEFAULT_LOGGER.debug or whatever method you want to invoke.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs