我正在尝试在终端中运行它:
rails generate controller welcome index
但是,它不是创建控制器。该过程以退出代码 0 结束。
有任何想法吗?
编辑
我的环境
RUBYGEMS VERSION: 1.8.10
RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [i686-linux]
INSTALLATION DIRECTORY: /home/sam/.rvm/gems/ruby-1.9.3-p0@myapp
RUBY EXECUTABLE: /home/sam/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
EXECUTABLE DIRECTORY: /home/sam/.rvm/gems/ruby-1.9.3-p0@myapp/bin
RUBYGEMS PLATFORMS:
ruby
x86-linux
GEM PATHS:
/home/sam/.rvm/gems/ruby-1.9.3-p0@myapp
/home/sam/.rvm/gems/ruby-1.9.3-p0@global
GEM CONFIGURATION:
:update_sources => true
:verbose => true
:benchmark => false
:backtrace => false
:bulk_threshold => 1000
REMOTE SOURCES:
http://rubygems.org/
----------------------
IDE: JetBrains RubyMine 4.0.3, build #RM-117.159
OS: Linux 3.0.0-17-generic[i386]
Java: 1.7.0-b147
RubyMine SDK Environment:
Sdk: RVM: ruby-1.9.3-p0 [myapp]
Sdk Version: ver.1.9.3p0 ( revision 33570) p0
Ruby Interpreter: /home/sam/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
RVM Sdk: yes, gemset:myapp
RVM Home: /home/sam/.rvm
Sdk Language Level: 1.9
Sdk Load Path:
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/i686-linux
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/vendor_ruby/1.9.1
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/vendor_ruby/1.9.1/i686-linux
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/vendor_ruby
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1
~/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/i686-linux
/opt/RubyMine-4.0.3/rubystubs19