2007年12月31日 星期一

用資料庫存放 sessions

rake db:sessions:create  

Blogged with Flock

2007年12月28日 星期五

Untitled

Blogged with Flock

2007年12月26日 星期三

非常好的手繪網站!!

好作品!!!

耶誕快樂!!


lit from within
Originally uploaded by pixminx(Donna)

2007年12月25日 星期二

這是我女兒在朱宗慶學打擊樂的照片

有被選為刊物封面哦!!~ ^^

Blogged with Flock


Flock 測試

這是直接在 Flock 裡寫的文章。
試看看。

Blogged with Flock

2007年12月23日 星期日

phpMyAdmin - 錯誤

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 路徑作為它的臨時目錄。
但若後來系統修改臨時路徑,就可能產生這個錯誤。

2007年12月16日 星期日

升級 rails 2.0 後,"500 Internal Server Error" 錯誤

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 的 "Buffer Error" 錯誤

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

就行了