DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Ruby (http://www.daniweb.com/forums/forum73.html)
-   -   Having some trouble getting started (http://www.daniweb.com/forums/thread105027.html)

hericles Jan 16th, 2008 4:14 pm
Having some trouble getting started
 
Hi,
I recently started reading up on Ruby on Rails and decided to install it so I could give it a go. I found some inconsistencies and problems that I hope I can get some help with.
First, when creating a project I used the ruby script/generate command and it worked fine but when I wanted to start the server I had to use ruby ./script/server (note the ./).
The difference confuses me.
The server then started up on port 3000 but browsing to localhost/3000 did not give me the default Rails page as it supposedly meant to...
Am I missing something simple here?
Thank you,
Steve

pty Jan 21st, 2008 2:55 pm
Re: Having some trouble getting started
 
Quote:

Originally Posted by hericles (Post 511830)
Hi,
I recently started reading up on Ruby on Rails and decided to install it so I could give it a go. I found some inconsistencies and problems that I hope I can get some help with.
First, when creating a project I used the ruby script/generate command and it worked fine but when I wanted to start the server I had to use ruby ./script/server (note the ./).
The difference confuses me.
The server then started up on port 3000 but browsing to localhost/3000 did not give me the default Rails page as it supposedly meant to...
Am I missing something simple here?
Thank you,
Steve




Try starting it and navigating to
http://localhost:3000

hericles Jan 29th, 2008 11:04 pm
Re: Having some trouble getting started
 
I tried that before I posted here but all I get is an Apache error message saying the page cannot be found. I get that message even when Apache is turned off...

rgviza Jun 4th, 2008 1:32 pm
Re: Having some trouble getting started
 
Try doing a:
telnet localhost 3000

To see if the service is really starting on that port or there's some other issue. If it times out the service definitely isn't started. Check your firewall settings too. Try unplugging your network cable, turning firewall completely off and hitting it.

Since it's localhost you don't need to leave yourself vulnerable while you test the service with the firewall turned off.

-Viz

jenishkottaram Jul 2nd, 2008 1:24 am
Re: Having some trouble getting started
 
You need to specify in 'config/routes.rb' file which page you want to display/load default.


All times are GMT -4. The time now is 5:03 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC