Ruby on Rails
Wednesday, September 24, 2014
Who told you to run ruby helloworlds_conteoller.rb and why would you expect that output from executing that as a ruby script?
In short, that's just not how Rails is built. Your webserver starts up the entire Rails app -- including loading all associated files and dependencies -- when you run rails server. (which is sounds like you already are successfully able to do?)
Running any individual file with the ruby command isn't how a Rails app works.
On Sep 24, 2014, at 1:40 PM, Morad <mb426@njit.edu> wrote:
While in the folder where the project is, issued command : ruby helloworlds_conteoller.rb ,then I would get that error . Basically I am expecting to see the output "hello world " when I run it in the command prompt and on sublime but I don't see it.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment