我是构建rails应用程序的第一部分,我无法获得命令
rails server
Run Code Online (Sandbox Code Playgroud)
工作,或任何其他rails命令.每当我尝试rails命令时,我都会得到这样的帮助屏幕:
$rails server
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /home/sgallagher/.rvm/rubies/ruby-1.9.2- p290/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
-G, [--skip-git] # Skip Git ignores and keeps
Run Code Online (Sandbox Code Playgroud)
等等(无论我输入什么命令,它都给我相同的"rails new"命令)...
关于我的系统中可能缺少的内容或为什么这些命令没有响应的任何想法?谢谢
PS另一个特殊的事情是,当我创建这个应用程序时,最初,我使用了命令:
rails new first_app
Run Code Online (Sandbox Code Playgroud)
这实际上创建了两个应用程序:一个名为'new',另一个名为'first_app'.它也没有创建默认的Gemfile.
我正在运行Rails 3.1.0和Ruby 1.9.2.在Ubuntu 10.04上.