In my application_helper.rb file, I have a function like this:
def find_subdomain request.domain end
undefined local variable or method `request '
And I call this method in another helper. How can I get the domain in the helper without passing any arguments from the controller.
ruby ruby-on-rails
Kishore mohan
source share