getaddrinfo: no address associated with hostname

631 views
Skip to first unread message

Yagnesh Vaidh

unread,
Apr 21, 2008, 3:28:22 AM4/21/08
to rubyonra...@googlegroups.com
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
--
Posted via http://www.ruby-forum.com/.

Visit Indonesia 2008

unread,
Apr 21, 2008, 3:36:22 AM4/21/08
to rubyonra...@googlegroups.com
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

Yagnesh Vaidh

unread,
Apr 21, 2008, 3:48:19 AM4/21/08
to rubyonra...@googlegroups.com
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

unread,
Apr 21, 2008, 3:53:37 AM4/21/08
to rubyonra...@googlegroups.com
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
--------------------------------------------------------------------------

Yagnesh Vaidh

unread,
Apr 21, 2008, 4:30:05 AM4/21/08
to rubyonra...@googlegroups.com
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?

Visit Indonesia 2008

unread,
Apr 21, 2008, 4:54:26 AM4/21/08
to rubyonra...@googlegroups.com
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

Yagnesh Vaidh

unread,
Apr 21, 2008, 5:17:55 AM4/21/08
to rubyonra...@googlegroups.com
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

Visit Indonesia 2008

unread,
Apr 21, 2008, 5:30:40 AM4/21/08
to rubyonra...@googlegroups.com
your route.rb is still in its default written. You can learn more abour
routing here :

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

Reply all
Reply to author
Forward
0 new messages