精華區beta Ruby 關於我們 聯絡資訊
新手發問 裝好RoR之後 localhost:3000 首頁中的連結 About your application’s environment 點了之後出現 Application error (Rails) 查了些資料 有人說要檢查public中 dispatch.fcgi dispatch.cgi dispatch.rb權限是755 我做到了 結果一樣錯誤沒有改善 有人說要 dummy_app> rake rails:freeze:gems dummy_app> echo >vendor/rails/activesupport/README dummy_app> rake doc:rails 做了 Application error (Rails)消失 出現 Not Found `/rails/info/properties' not found. 然後所有路徑都是Not Found了 卡住好久不知道該怎麼辦 請版友幫忙 新手發問 請多包涵 -- About your application's environment Ruby version 1.8.5 (i386-freebsd6) RubyGems version 0.8.11 Rails version 1.1.6 Active Record version 1.14.4 Action Pack version 1.12.5 Action Web Service version 1.1.6 Action Mailer version 1.2.5 Active Support version 1.3.1 Edge Rails revision unknown Application root xxxxx/xxxxx/xxxxx/demo Environment development Database adapter mysql Database schema version 0 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.90.104 > -------------------------------------------------------------------------- < 作者: giive (lala) 看板: Ruby 標題: Re: [RoR ] 問題 Application error (Rails) 時間: Mon Oct 23 08:06:13 2006 ※ 引述《timerover (再也不會輸了!!!)》之銘言: : 新手發問 : 裝好RoR之後 localhost:3000 首頁中的連結 : About your application’s environment : 點了之後出現 : Application error (Rails) : 查了些資料 : 有人說要檢查public中 dispatch.fcgi dispatch.cgi dispatch.rb權限是755 : 我做到了 結果一樣錯誤沒有改善 http://lightyror.blogspot.com/2006/08/rails_26.html 假設一開始初始化你的 Project 就有 Application Error 問題 通常死在權限 或是 你的環境架設 權限部份請確定你的 log/ tmp/ 資料夾權限都是可讀寫 並且請確認你跑的 Web Server 可以讀寫到這兩個資料夾 意思就是說,如果當你使用 lighttpd , 系統通常都會用 lighttpd 這個 user 來啟動 lighttpd 請確認 lighttpd 這個 user 是否可以讀寫 log/ tmp/ 如果你使用 webrick 你只要確認你現在使用者有權限可以讀寫即可 如果你對於我講的話霧撒撒的 一個小建議是你先一開重新建立一個新的 Rails 資料夾 rails test 進入這個資料夾,不要切換任何使用者,強迫使用 Webrick 啟動 ruby script/server webrick 之所以要這麼作是因為 script/server 會偵測有沒有 lighttpd 如果有就會自動改成 lighttpd 啟動 只有在後面加入 webrick 才會強迫使用 webrick 來啟動 Rails 通常只要這樣作,絕對沒有權限的問題 但是你都照作了,真的還是有上述的問題 那就是你 Ruby on Rails 安裝有問題 請將你的 OS 還有安裝方式講清楚 : 有人說要 : dummy_app> rake rails:freeze:gems : dummy_app> echo >vendor/rails/activesupport/README : dummy_app> rake doc:rails : 做了 Application error (Rails)消失 : 出現 Not Found : `/rails/info/properties' not found. : 然後所有路徑都是Not Found了 : 卡住好久不知道該怎麼辦 請版友幫忙 : 新手發問 請多包涵 -- lighty RoR 是一個介紹 lighttpd , SQLite , Ruby and Rails 的 Blog http://lightyror.blogspot.com/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.170.38.72
timerover:已解決 非常感謝:) 10/23 11:37