RedmineをRails2.3.2で動かしてみる
対象
- Rails 2.3.2 (Windowsでgem update したら現在はこのバージョンになる)
- Ruby 1.8.6 (ちょっと古い)
- (Windows xp)
修正
/redmine/app/application_controler.rb
25行目付近をコメントアウト。(なんだかCGI::Sessionのモジュールが見つからないというエラーが出る)
良案が思いつけばいいのだけど。(Rubyはよんだことない)
# rescue_from CGI::Session::CookieStore::TamperedWithCookie do |exception| # render :text => 'Your session was invalid and has been reset. Please, reload this page.', :status => 500 # end
number_to_human_size について引数追加
- /redmine/app/views/attachments/diff.rhtml
- /redmine/app/views/attachments/_links.rhtml
- /redmine/app/views/attachments/file.rhtml
- など。Grepで検索してくださいm(__)m
<%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>
number_to_human_sizeに引数を以下のように追加する。
<%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes, locale=>'en') %>)
どうも、Rails2.3.2から発生。
国際化の影響のようだ。(active_supportにjaロケールがないときに発生する模様)
開発版なので気づかれないのは当然かもしれない。
上記対応をしないと、Wiki文章、リポジットリを表示することができない。
また何か情報があったら追記します