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 can Rails Migration do?

656


What are the servers supported by ruby on rails?

657


what is rake in Rails?

683


How can you protect filter methods in rails?

666


Explain the various ide's of ruby on rails.

641


At is cross-site request forgery (csrf)?

726


What is Rails?

663


Do you know what are the types of caching used in rails, what are they?

591


Tell me what is ruby on rails?

592


Explain valid and invalid in rails?

636


what is the difference between new, save and create?

695


Why we use migration in rails?

678


how you can list all routes for an application?

666


How does router work in rails?

634


How many types of variables are available in ruby class?

680