I can't make rails generate controller
I've ruby 1.9.3 and rails 3.1
I'm try to generate a controller with this syntax:
$rails generate controller sessions new create failure
but respond me with this error:
/Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in load': /Users/Uriel/Documents/Uriel/omniauth/config/initializers/omniauth.rb:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end (SyntaxError) from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in
block in load' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in block in load_dependency' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in
new_constants_in' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in load_dependency' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in
load' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omnia uth/gems/railties-3.1.0/lib/rails/engine.rb:555:in block (2 levels) in <class:Engine>' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/engine.rb:554:in
each' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/engine.rb:554:in block in <class:Engine>' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/initializable.rb:25:in
instance_exec' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/initializable.rb:25:in run' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/initializable.rb:50:in
block in run_initializers' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/initializable.rb:49:in each' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/initializable.rb:49:in
run_initializers' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rail s/application.rb:92:in initialize!' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in
initialize!' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in
method_missing' from /Users/Uriel/Documents/Uriel/omniauth/config/environment.rb:5:in <top (required)>' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/application.rb:78:in
require' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/application.rb:78:in require_environment!' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/commands.rb:22:in
require_environment!' from /Users/Uriel/.rvm/gems/ruby-1.9.3-head@omniauth/gems/railties-3.1.0/lib/rails/commands.rb:22:in
' from script/rails:6:in require' from script/rails:6:in
'
Thanks! :)
链接地址: http://www.djcxy.com/p/57904.html上一篇: 蒙古三重化合物指数
下一篇: 我不能让铁轨生成控制器