[英]Unable to install activerecord in Ruby on Rails 4.1.4
I am unable to install activerecord
in Ruby on Rails 4.1.4. 我无法在Ruby on Rails 4.1.4中安装
activerecord
。
I've added gem 'activeadmin', github: 'activeadmin'
to the end of Gemfile
and run bundle install
. 我已经添加了
gem 'activeadmin', github: 'activeadmin'
在2002年底Gemfile
并运行bundle install
。 It returns 0, so I've tried to run rails g active_admin:install
command, but it returns the following error: 它返回0,所以我尝试运行
rails g active_admin:install
命令,但是它返回以下错误:
NameError: undefined local variable or method
install' for main:Object from (irb):3 from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands/console.rb:90:in
start' from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands/console.rb:9:instart' from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:69:in
console' from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:inrun_command!' from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands.rb:17:in
NameError:
install' for main:Object from (irb):3 from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands/console.rb:90:in
未定义局部变量或方法install' for main:Object from (irb):3 from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands/console.rb:90:in
E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands/console.rb: 9:在start' from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:69:in
从E中开始:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:在run_command!' from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands.rb:17:in
run_command!' from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands.rb:17:in
' from E:/work/projects/src/technical_support_timer/bin/rails:4:inrequire' from E:/work/projects/src/technical_support_timer/bin/rails:4:in
' from -e:1:inload' from -e:1:in
'run_command!' from E:/software/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.4/lib/rails/commands.rb:17:in
'来自E:/ work / projects / src /require' from E:/work/projects/src/technical_support_timer/bin/rails:4:in
的require' from E:/work/projects/src/technical_support_timer/bin/rails:4:in
'来自-e:1:in的'来自-e:1:in的load' from -e:1:in
'
Why? 为什么? What am I doing wrong?
我究竟做错了什么? How can I fix it?
我该如何解决?
Thanks in advance. 提前致谢。
IRB is there for you to try out Ruby commands or snippets and see immediate responses. IRB可以为您试用Ruby命令或代码片段,并查看即时响应。 If you want to install or update gems, I suggest you get off IRB first by running
quit
and follow whatever instructions you have on your hand. 如果您要安装或更新gem,建议您先运行
quit
并按照您的指示进行操作,以从IRB下车。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.