2009-10-29から1日間の記事一覧

Ruby 1.9.1p243 & Rails 2.3.4 で undefined method `^' for "0":String みたいなエラーが出る問題

結構ハマった。 修正Patch https://rails.lighthouseapp.com/projects/8994/tickets/3144/a/261015/0001-ruby-1.9-friendly-secure_compare.patch これは何 Ruby1.9ではString[n]は文字そのものを返します。この動作はRuby1.8の動作(キャラクターコードを返…