Hi, while starting to setup functional tests for my application I
received the following error:
NoMethodError: undefined method `server_name’ for
#<ActionController::TestRequest
which is coming from an instance variable I’m setting up in my
application controller.
@domain = Domain.find_or_create_by_name(request.server_name)
I’m using rails 2.0.2, any guidance would be appreciated.