Cannot enter after "ruby script / server" in InstantRails

I am new to RoR. I am using the book "Agile Web Development with Rails" to get started with Windows 7.

In the command window, I run the following.

>rails demo
>cd demo
>ruby script/server

      

At this point, it loads the Mongrel server:

=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server

      

The book says that I run

ruby script/generate controller Say

      

but I can't Ctrl-C - or type anything for that matter - after booting up the Mongrel server. Should I create a new controller in another instance of the InstantRails Command Window? Right now, the only way to stop the server is to close the window in which I started the server!

Please let me know if you need any other details. TIA.

+2


source to share


2 answers


You can always open a new window and run commands from there.



+3


source


You need to either put the job in the background or start another shell. Control-C should still work.



+1


source







All Articles