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
Can you explain me how rails implements ajax?
What is rails router?
Explain bundler in rails.
What is a webrick web server?
What is the difference between symbol and string?
What are the three methods to install ruby on rails?
what are benefits of using active record as opposed to raw sql queries?
what is the difference between new, save and create?
What is the difference between concern and application_controller.rb in ruby on rails?
Do you know the role of garbage collection in ruby on rails?
what is the purpose of RJs in Rails?
Explain me what is the role of rails controller?
what is the defined operator?
Explain the controller in rails?
what is active record?