On Jul 16, 2009, at 7:58 AM, seenu wrote:
> Hi,
>
> How can i remove 12002 from the URL
> http://www.projectbidding.com:12002/account/index
> i am using ruby on rails. I just need to have my url
> http://www.projectbidding.com/account/index.
>
> Please help me on this
Well, I suppose the snarky answer is run your listener on port 80 (the
default for the http protocol), but since that may not be helpful, let
me guess what you really need.
You're in a controller and want to construct that URI from the request:
"#{request.protocol}#{request.host}#{request.request_uri}"
If you replaced request.host with request.host_with_port you'd get the
equivalent of request.url
http://www.railsbrain.com/api/rails-2.3.2/doc/index.html?a=M000469&name=protocol
-Rob
Rob Biedenharn http://agileconsultingllc.com
[email protected]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---