I haven’t used Ruby in a while, so I just came back to it today and whenever I try to do rails s or rails console it spits out the generic help text, i.e.
rails console ~
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /Users/cabelhigh/.rvm/rubies/ruby-1.9.2-p320/bin/ruby
-b, [--builder=BUILDER] # Path to a application builder (can be a filesystem path or URL)
-m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL)
[--skip-gemfile] # Don't create a Gemfile
[--skip-bundle] # Don't run bundle install
It just does this over and over. Any idea what’s wrong?
Also, I’m running OSX, if that has anything to do with it.
EDIT: Version info: Rails 3.2.8, ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin11.3.0]
You are not in a rails application directory when you execute the commands
Make a new rails app with
cd into the directory
and run
or