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
classes)
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
classes)
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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs