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
Tell me what is coc in rails?
who developed rails?
when self.up and self.down method is used?
What is Rails?
how can you declare a block in Ruby?
how you can list all routes for an application?
What is the use of super in Ruby Rails?
what is the difference in scope for these two variables: @@name and @name?
Please explain what are the positive aspects of rails?
Where does the start_tabnav gets informations for tabs rendering in ruby rail?
What is rails script? Name some of them?
what is Rails Active Record in Ruby on Rails?
what is “Yield” in Ruby on Rails?
What is the architecture of Model views and controllers
Are there any disadvantages of ruby on rails? If yes, mention them.