am new to ruby. tell me one thing.
i can view my project on browser when i write "ruby
script/server". otherwise i cant view my project on localhost.

what i have to do to view my project always on browser?
pls help

Answer Posted / manish nautiyal

ruby script/server -d

with -d your server will run always. This is for only your localhost machine. When you deploy your project on live server than you have to use apache to run it.

And to see it in the browser you have to type

http://localhost:3000/

3000 port is by default port for ruby on rails you can change the port by using -p

ruby script/server -d -p 3001

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Get and post method?

671


Explain the features of ruby on rails.

594


What are rails validation used for?

636


How will be the future for ruby on rails?

640


Explain some features of nested scaffolding.

661


How would you create a controller for the subject?

573


How is direct different from render?

651


Tell me what is the difference between the observers and callbacks in ruby on rails?

625


What are the various changes between the rails version 2 and 3?

613


What role does garbage collection play?

703


what is the command to create a migration?

703


how you define Instance Variable, Global Variable and Class Variable in Ruby?

661


what is the difference between new, save and create?

679


Who developed ruby on rails?

645


How are blocks created?

680