就在剛剛,我終於終於終於終於終於找出為什麼會出現錯誤的原因了
原因就是,幹!lib/底下少兩個檔案!
1. authenticated_system.rb
2. model_extensions.rb
剛剛跑去svn,也沒看到這兩隻檔案
hacking code也沒看到會產生這兩隻檔案
generate後,也沒產生這兩隻檔案!!!!!
不知道是Bill Katz有改版還是怎樣
他的sample抓下來,跟他release的版本,好像有些許不同?
吼!
in app/controller/applications.rb:
class ApplicationController < ActionController::Base
include AuthenticatedSystem
end
要使用必須加上這個
沒有加的話,會產生undefined local variable or method
加上去,少了authenticated_system.rb的話
會產生uninitialized constant AuthenticatedSystem什麼的
真是該死
終於好了..
開始開發拉XD
不過得先去睡覺...
Night all...
For piggy:
別太傷心拉... >"<
原因就是,幹!lib/底下少兩個檔案!
1. authenticated_system.rb
2. model_extensions.rb
剛剛跑去svn,也沒看到這兩隻檔案
hacking code也沒看到會產生這兩隻檔案
generate後,也沒產生這兩隻檔案!!!!!
不知道是Bill Katz有改版還是怎樣
他的sample抓下來,跟他release的版本,好像有些許不同?
吼!
in app/controller/applications.rb:
class ApplicationController < ActionController::Base
include AuthenticatedSystem
end
要使用必須加上這個
沒有加的話,會產生undefined local variable or method
加上去,少了authenticated_system.rb的話
會產生uninitialized constant AuthenticatedSystem什麼的
真是該死
終於好了..
開始開發拉XD
不過得先去睡覺...
Night all...
For piggy:
別太傷心拉... >"<
全站熱搜
留言列表