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

Can you explain me how rails implements ajax?

615


How many types of variables are available in ruby class?

658


How would you create a controller for the subject?

573


What are the various components of rail?

717


what is the defined operator?

823


Tell me what is polymorphic association in ruby on rails?

610


How do I find only duplicate entries in a database table?

766


Explain model in rails?

614


what is Cross-Site Request Forgery (CSRF) and how Rails is protected against it?

668


How you run your rails application without creating databases?

613


What is a ruby singleton method ?

640


Do you know the role of garbage collection in ruby on rails?

630


How to serialize data with yaml?

660


What are gemsets in rails?

606


who developed rails?

676