[問題] NoMethodError
環境:
ruby:1.8.6
rails:2.0.2
狀況:
執行了http://localhost:3000/admin
出現的錯誤訊息
NoMethodError in AdminController#index
undefined method `scaffold' for AdminController:Class
RAILS_ROOT: C:/InstantRails-2.0-win/rails_apps/depot
Application Trace | Framework Trace | Full Trace
app/controllers/admin_controller.rb:2
script/server:3
app/controllers/admin_controller.rb:2
script/server:3
Request
Parameters:
None
Show session dump
---
flash: !map:ActionController::Flash::FlashHash {}
Response
Headers:
{"cookie"=>[],
"Cache-Control"=>"no-cache"}
不知是哪裡的設定有問題?/
附錄:
無
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 211.72.212.241
→
01/29 21:57, , 1F
01/29 21:57, 1F
推
01/29 23:18, , 2F
01/29 23:18, 2F
→
01/30 00:53, , 3F
01/30 00:53, 3F
→
01/30 16:39, , 4F
01/30 16:39, 4F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 3 篇):
Ruby 近期熱門文章
PTT數位生活區 即時熱門文章