论坛: 开发者论坛 (Thread #29939)

wrong argument type Symbol (expected Proc) (2011-07-21 07:11 by hidetoshi #58722)

CentOSでyum updateを実行したら、marsが起動しなくなった。
passengerには下記のようなエラーメッセージ。

----------------------------------------------------
Ruby on Rails application could not be started

Error message:
wrong argument type Symbol (expected Proc)
Exception class:
TypeError
Application root:
/var/lib/mars

Backtrace:
/var/lib/mars/lib/mars/ui/element_set.rb
----------------------------------------------------

エラーが出ているelement_set.rbの51行目を見てみる。

@sequences = seqs.map(&:to_sym)

Ruby 1.8.7以上のto_symが使用されている。

Rubyのバージョンを確認すると、1.8.5と表示される。
あれ?
1.8.5はアンインストールして、1.8.7をインストールしてあるんだけれど、CentOSのアップデートで、1.8.5が有効になってしまっている。
再度、1.8.5をアンインストールして、1.8.7をインストールしたら解決。