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 / rohit kumar shaw

For any Scripting languages like PHP, Ruby etc need a server
(It may be virtual server i.e. localhost) to run their code.

When you run this code in command line ruby script/server it
means you already started your apache server to run the code
and hence you can see your output in browser. If you close
your command line window, it means apache server is stop
working now and then you can't be able to see your output
anymore.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is Rails Migration?

500


What does ruby name refer to?

533


Write a program to generate and run the application without the use of database

444


Explain the controller in rails?

477


What is rails scaffolding?

593






Explain me what is the naming convention in rails?

436


Difference between argument and parameter in ruby on rails ?

465


How does router work in rails?

454


Explain rest in rails routes.

502


who developed rails?

536


what is the role of Rails Controller?

490


What is the difference between false and nil in ruby?

456


What is a webrick web server?

502


Tell me what is polymorphic association in ruby on rails?

455


Explain about restful architecture?

469