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
Do you know what are the types of caching used in rails, what are they?
What role do sub-directory app/helpers and app/controllers play?
The string can be represented in single as well as double quotes. What is the difference between the two?
What is rails scaffolding?
how many types of callbacks available in ror?
If you want to set up a one-to-one relationship between two models, you'll need to add belongs_to to one, and has_one to the other. How do you know which is which?
Explain testing in rails.
What is the importance of rjs?
Do you know what is rake in rails?
How can you run rails without creating databases?
How is the model view controller framework used in ruby on rails?
In how many ways you can create rails layout http response.
What I have to do to view my project always on browser?
how you define Instance Variable, Global Variable and Class Variable in Ruby?
what is the role of Rails Controller?