rake db:sessions:create
Blogged with Flock
phpMyAdmin - 錯誤
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
這個錯誤原因是php.ini 中session.save_path 指向的路徑錯誤
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
session.save_path = "c:/TEMP"
當apache 安裝時,它會抓取系統的 temp 路徑作為它的臨時目錄。
但若後來系統修改臨時路徑,就可能產生這個錯誤。
config\environments\development.rb
#config.breakpoint_server = true 關掉
刪除 tmp/sessions 下所有檔案
開啟 config\environment.rb 中
config.action_controller.session_store = :active_record_store
執行 rake db:sessions:create,建 sessions 資料表放置 session 資訊
rake db:migrate 建立資料表
rails 2.0已發佈了。
當你執行 gem install rails -y 指令,要升級到 rails 2.0 時,若出現 buffer error,
打開 C:\InstantRails\ruby\lib\ruby\site_ruby\1.8\rubygems\package.rb 這個檔
找到 zipped_stream
將它改為
def zipped_stream(entry)
entry.read(10) # skip the gzip header
zis = Zlib::Inflate.new(-Zlib::MAX_WBITS)
is = StringIO.new(zis.inflate(entry.read))
ensure
zis.finish if zis
end
就行了