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 how you can run rails application without creating databases?

447


Tell me what is the function of garbage collection in ruby on rails?

487


Explain me what are the limits of ruby on rails?

456


what is different between activerecord::relation's count, length and size methods?

511


How many types of variables are available in ruby class?

489






Mention all the naming conventions in ruby on rails.

475


Do you know what is sweeper in rails?

467


Mention the differences between the observers and callbacks in ruby on rails.

472


What is the current version of ruby on rails?

466


What role does garbage collection play?

511


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

463


What is ORM in Rails?

517


Explain what are the servers supported by ruby on rails?

446


Explain rest in rails routes.

501


Explain me the log that has to be seen to report errors in ruby rails?

411