Im using Rails 4.2.4. How to define an auxiliary (private) method in a module? I have this module
module WebpageHelper def get_url(url) content = get_content(url) .. end def get_content(url) … end module_function :get_url end
I do not want the get_content method to be public, but with the code above, I get an error
Error during processing: undefined method `get_content' for WebpageHelper:Module
How to define a private helper method in my module?
methods module ruby-on-rails-4 helper
user6447029
source share