You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on Ruby 1.8.7 and Rails 3.0.7 and have successfully installed Valium and can boot a console, but:
User.where('id > 0')[:id]
yields:
User Load (2.6ms) SELECT "users".* FROM "users" WHERE (id > 0)
TypeError: Symbol as array index
from /Users/codyc/.rvm/gems/ruby-1.8.7-p352@vinosmith/gems/activerecord-3.0.7/lib/active_record/relation.rb:366:in `[]'
from /Users/codyc/.rvm/gems/ruby-1.8.7-p352@vinosmith/gems/activerecord-3.0.7/lib/active_record/relation.rb:366:in `send'
from /Users/codyc/.rvm/gems/ruby-1.8.7-p352@vinosmith/gems/activerecord-3.0.7/lib/active_record/relation.rb:366:in `method_missing'
from (irb):1
Valium works great on a Ruby 1.9.2 / Rails 3.1 app - but I'd love to use it on this legacy app.
Thanks.
The text was updated successfully, but these errors were encountered:
I'm on Ruby 1.8.7 and Rails 3.0.7 and have successfully installed Valium and can boot a console, but:
User.where('id > 0')[:id]
yields:
Valium works great on a Ruby 1.9.2 / Rails 3.1 app - but I'd love to use it on this legacy app.
Thanks.
The text was updated successfully, but these errors were encountered: