ActionController::TestRequest bug?

Hi, while starting to setup functional tests for my application I
received the following error:

NoMethodError: undefined method `server_name’ for

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs