my routes.rb file has different content. For example, the second line has get "home/index" and the two lines of code at the bottom of your file, before you start typing, aren't there. Either way, any changes I make are spewing out tons of errors when I start the server with "rails server"
That worked @OV3RS1GHT - guess it was written for an older version of Ruby? I'm running 1.9.2p180 and I had run into a previous problem in the tutorial.
@levygeorge Oh, and if you haven't figured it out already, use "rails server" to start the server, and you can access it in your browser at localhost:3000
I have the same problem... Everything had been going smoothly until I reach the step of typing in
ruby script \generate controller home index
Then it just returns the error:
ruby: No such file or directory -- script/generate (LoadError)
Can't get beyond that... Everything had been going well until now. Any suggestions as to what I may have done incorrectly? I'm copying exactly what you are doing.
my routes.rb file has different content. For example, the second line has get "home/index" and the two lines of code at the bottom of your file, before you start typing, aren't there. Either way, any changes I make are spewing out tons of errors when I start the server with "rails server"
d36williams 9 months ago in playlist Queue (10)
Thanks @OV3RS1GHT - I was wondering why my browser would not display the localhost:3000 - now I'm on Rails. THANKS!
levygeorge 9 months ago
That worked @OV3RS1GHT - guess it was written for an older version of Ruby? I'm running 1.9.2p180 and I had run into a previous problem in the tutorial.
Thanks a ton - that was extremely helpful :-)
levygeorge 9 months ago
@levygeorge Not a problem. Ever since version 3 "rails" now handles much of the scripting.
OV3RS1GHT 9 months ago
@levygeorge Oh, and if you haven't figured it out already, use "rails server" to start the server, and you can access it in your browser at localhost:3000
OV3RS1GHT 9 months ago
I have the same problem... Everything had been going smoothly until I reach the step of typing in
ruby script \generate controller home index
Then it just returns the error:
ruby: No such file or directory -- script/generate (LoadError)
Can't get beyond that... Everything had been going well until now. Any suggestions as to what I may have done incorrectly? I'm copying exactly what you are doing.
Tx!
levygeorge 9 months ago
@levygeorge try the following:
rails generate controller home index
OV3RS1GHT 9 months ago
Hi There,
It is a good tutorial that you did! I was following exactly what you did. until I type the command ruby script\server. I get an error
You may encounter a bug of Ruby interpreter. Bug reports are welcome.This application has requested the Runtime to terminate it in an unusual way.
Where I am I going wrong?
visa13 1 year ago