User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Ruby section within the Web Development category of DaniWeb, a massive community of 391,610 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,608 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Ruby advertiser: SELL YOUR PRODUCT TODAY !
Views: 3280 | Replies: 4
Reply
Join Date: Nov 2007
Location: Christchurch, NZ
Posts: 15
Reputation: hericles is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
hericles hericles is offline Offline
Newbie Poster

Having some trouble getting started

  #1  
Jan 16th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2005
Location: Manchester, UK
Posts: 481
Reputation: pty is on a distinguished road 
Rep Power: 3
Solved Threads: 31
pty's Avatar
pty pty is offline Offline
Posting Pro in Training

Re: Having some trouble getting started

  #2  
Jan 21st, 2008
Originally Posted by hericles View Post
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
Note to self... pocket cup
Reply With Quote  
Join Date: Nov 2007
Location: Christchurch, NZ
Posts: 15
Reputation: hericles is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
hericles hericles is offline Offline
Newbie Poster

Re: Having some trouble getting started

  #3  
Jan 29th, 2008
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...
Reply With Quote  
Join Date: May 2008
Posts: 31
Reputation: rgviza is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
rgviza rgviza is offline Offline
Light Poster

Re: Having some trouble getting started

  #4  
Jun 4th, 2008
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
Reply With Quote  
Join Date: Dec 2007
Posts: 3
Reputation: jenishkottaram is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jenishkottaram jenishkottaram is offline Offline
Newbie Poster

Re: Having some trouble getting started

  #5  
Jul 2nd, 2008
You need to specify in 'config/routes.rb' file which page you want to display/load default.
Last edited by jenishkottaram : Jul 2nd, 2008 at 1:25 am.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Ruby Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Ruby Forum

All times are GMT -4. The time now is 12:15 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC