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
How is calling super() different from the super call?
What are the steps involved in writing and setting up an application in ruby on rails?
How is the model view controller framework used in ruby on rails?
what are helpers and how to use helpers in ror?
How are blocks created?
Explain coc in rails?
What are the functions performed by rails migration?
Explain what is the role of the subdirectories app/controllers and app/helpers in rails?
Do you know what are the types of caching used in rails, what are they?
Tell me what is the function of garbage collection in ruby on rails?
what is the difference in scope for these two variables: @@name and @name?
what is the command to create a migration?
What I have to do to view my project always on browser?
Explain the various ide's of ruby on rails.
Mention the role of rails controller.