public Method

AbstractRequest.port_string

Returns a port suffix like ":8080" if the port number of this request is not the default HTTP port 80 or HTTPS port 443.

Source Code

# File action_controller/request.rb, line 198
def port_string
  (port == standard_port) ? '' : ":#{port}"
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.