I’m using Rails 4.2.4. How do I define a helper (private) method within 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 don’t want the method “get_content” to be publicly accessible, but with the above code I get the error
Error during processing: undefined method `get_content' for WebpageHelper:Module
How do i properly define a private helper method in my module?