- 前は出なかったのに、こんな感じのエラーが出る。
ActionController::RoutingError
(No route matches "/~shida/sandbox/sample_app/categories/show"
with {:method=>:get}):
- Apache + mod_fcgidでやってるんだけど、どうも、dispatch.fcgiのpath_info部分をちゃんと判定できてないっぽい
- config/environment/development.rbに次を追記 ActionController::AbstractRequest.relative_url_root = "/~shida/sandbox/sample_app"
- config/environment/development.rbに次を追記
ActionController::AbstractRequest.relative_url_root = "/~shida/sandbox/sample_app"
- 参考) http://api.rubyonrails.org/classes/ActionController/AbstractRequest.html#M000817
#blikifooter(志田)
tag: [[Ruby on Rails>tag/Ruby on Rails]]