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 / bidesh mondal

if u run the server (ruby script/server -d) then the command
line will close ,but server is running.The server will run
until the machine is restart. you can start different port
using ruby script/server -p 3001 -d

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are string and symbol different?

653


What are models in rails?

612


Explain me what is the purpose of rjs in rails?

643


Explain the role of sub directory app/controllers and app/helpers.

626


Explain how does rails implement ajax?

713


what is Mixin in Rails?

687


What is the difference between delete and destroy ?

627


What does session and cookies represent in ruby on rails?

579


Difference between gem and plugin?

689


Explain dry in rails?

639


Explain the advantages of ruby on rails?

637


How many filters are there in rails.

666


Do you know what is cross-site request forgery (csrf) and how rails is protected against it?

605


how many types of callbacks available in ror?

783


What is the importance of rjs?

639