I am attempting to access a function in a module that is located in the lib directory of my app. (lib/search.rb)
I am actually trying to get zip code searching working from: http://joshhuckabee.com/simple-zip-code-perimeter-search-rails
lib/search.rb
module Search
def zip_code_perimeter_search(zip, radius)
#code
end
end
I am trying to call the zip_code_perimeter_search function from the rails console or from my controller, both times I get undefined method. Any ideas?