Forum: Ruby on Rails weird problem when updating to RC5

85458feac00c538a9689d43ee0f3c8d6?d=identicon&s=25 Tomas R. (josetomas_r)
on 2011-08-09 02:52
i updated from RC4 to RC5 (3.1) and everytime I do
SomeModel.all, .first, anything I get something like this

ActionView::Template::Error (undefined method `visitor' for
#<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0x00000003c9a1f0>):

PostgreSQLAdapter or SQLiteAdapter
75d3832fe8b60e25f0837a2245ae893a?d=identicon&s=25 James C. (james_c)
on 2011-08-09 04:22
i'm receiving the same error with both 3.1rc4 and rc5 ... the cause
appears to be with arel 2.1.5. i added gem "arel", "2.1.4" to my gemfile
and the error went away.

Tomas R. wrote in post #1015594:
> i updated from RC4 to RC5 (3.1) and everytime I do
> SomeModel.all, .first, anything I get something like this
>
> ActionView::Template::Error (undefined method `visitor' for
> #<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0x00000003c9a1f0>):
>
> PostgreSQLAdapter or SQLiteAdapter
85458feac00c538a9689d43ee0f3c8d6?d=identicon&s=25 Tomas R. (josetomas_r)
on 2011-08-09 04:36
so its a problem with arel 2.1.5, thanks for the tip
Bc0113f8d1eb938b596806b920e25939?d=identicon&s=25 ryanjmclaughlin (Guest)
on 2011-08-09 08:12
(Received via mailing list)
same issue here...
Bc0113f8d1eb938b596806b920e25939?d=identicon&s=25 Ryan M. (ryan_m)
on 2011-08-10 06:30
ryanjmclaughlin wrote in post #1015638:
> same issue here...

arel 2.1.4 downgrade made everything work perfectly, thanks.
79f9616c279f40ef953f366dcfe38dc8?d=identicon&s=25 Suraj Kurapati (sunaku)
on 2011-08-11 00:02
@tenderlove yanked the troublesome 2.1.5 gem:

https://github.com/rails/arel/issues/72

Problem solved.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.