![](/img/trans.png)
[英]Unable to set secret_key_base for the production environment in Ruby on Rails 4.1.4 application running on Heroku
[英]Unable to install activerecord in Ruby on Rails 4.1.4
我無法在Ruby on Rails 4.1.4中安裝activerecord
。
我已經添加了gem 'activeadmin', github: 'activeadmin'
在2002年底Gemfile
並運行bundle install
。 它返回0,所以我嘗試運行rails g active_admin:install
命令,但是它返回以下錯誤:
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
'來自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
'
為什么? 我究竟做錯了什么? 我該如何解決?
提前致謝。
IRB可以為您試用Ruby命令或代碼片段,並查看即時響應。 如果您要安裝或更新gem,建議您先運行quit
並按照您的指示進行操作,以從IRB下車。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.