Getaddrinfo: no address associated with hostname

When i m going to upload the site This msg is coming instead of
application view using localhost.

getaddrinfo: no address associated with hostname

Can u give me the solution about this?

Thanks
Yagnesh

Sorry, what do you mean that your view is using request params to
displat your website address information?

if yes, you can spend some minutes to :
http://teapoci.blogspot.com/2008/04/list-of-request-params.html

@request.env[“HTTP_HOST”] = “www.yourdomain.com

Reinhart
http://teapoci.blogspot.com

Enjoy !!
Free Ruby eBook :
http://teapoci.blogspot.com/search/label/eBook

Visit Indonesia 2008 wrote:

Sorry, what do you mean that your view is using request params to
displat your website address information?

if yes, you can spend some minutes to :
http://teapoci.blogspot.com/2008/04/list-of-request-params.html

@request.env[“HTTP_HOST”] = “www.yourdomain.com

Reinhart
http://teapoci.blogspot.com

Enjoy !!
Free Ruby eBook :
http://teapoci.blogspot.com/search/label/eBook

Ok when i m going to redirect my Ror application on facebbook
after authintcate the login ,actually application view or home page will
be displayed, instead of that this error msg is coming:

SocketError (getaddrinfo: no address associated with hostname.)

An i m using localhost:
http://127.0.0.1:3000/appname/action

Visit Indonesia 2008 wrote:

I think you have to read carefully tutorial of rfacebook.
http://rfacebook.wordpress.com/2008/02/04/quickstartfacebooker/

Read STEP 3 - 7 Very Carefully.

Success Bro,
Reinhart
http://teapoci.blogspot.com

Enjoy !!
Free Ruby eBook :
http://teapoci.blogspot.com/search/label/eBook

I got authentication on facebook after that this msg is coming,
and also i followed the steps in tutorial perfactly,
But problem is as it is .
Also i have some doubts i map controller in route.rb file how i can
write this line for my application can u give me an example?

let me see what you have done in your route.rb, so i can understand your
doubtness. Because you give question ambiguous always without point or
detail of problem.

Reinhart

I think you have to read carefully tutorial of rfacebook.
http://rfacebook.wordpress.com/2008/02/04/quickstartfacebooker/

Read STEP 3 - 7 Very Carefully.

Success Bro,
Reinhart
http://teapoci.blogspot.com

Enjoy !!
Free Ruby eBook :
http://teapoci.blogspot.com/search/label/eBook

Visit Indonesia 2008 wrote:

let me see what you have done in your route.rb, so i can understand your
doubtness. Because you give question ambiguous always without point or
detail of problem.

Reinhart

hEAR IT ID ROUTES.RB fILE CONTENT:

ActionController::Routing::Routes.draw do |map|

The priority is based upon order of creation: first created ->

highest priority.

Sample of regular route:

map.connect ‘products/:id’, :controller => ‘catalog’, :action =>

‘view’

Keep in mind you can assign values other than :controller and

:action

Sample of named route:

map.purchase ‘products/:id/purchase’, :controller => ‘catalog’,

:action => ‘purchase’

This route can be invoked with purchase_url(:id => product.id)

You can have the root of your site routed by hooking up ‘’

– just remember to delete public/index.html.

map.connect ‘’, :controller => “welcome”

Allow downloading Web Service WSDL as a file with an extension

instead of a file named ‘wsdl’

map.connect ‘:controller/service.wsdl’, :action => ‘wsdl’

Install the default route as the lowest priority.

map.connect ‘’, :controller => “fairpage”
map.connect ‘:controller/:action/:id.:format’
map.connect ‘:controller/:action/:id’
end

Guide me to solve this.

Thanks in advance

your route.rb is still in its default written. You can learn more abour
routing here :

http://manuals.rubyonrails.com/read/chapter/65

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