on 2014 Dec 17 8:31 AM
Hello,
can somebody help me? Where is my Misstake? Running is the Example-PersonalServer of the Standard-Installation.
require 'rubygems'
require 'active_record'
ActiveRecord::Base.establish_connection(adapter: "sqlanywhere", database: "demo", user: "DBA", password: "***", server: "demo12")
class Contacts < ActiveRecord::Base
self.table_name = 'Contacts'
end
res = Contacts.find(:all)
Error: in `build_arel': undefined method `bind_values' for #<Arel::SelectManager:0x270faf8> (NoMethodError)
I use:
activerecord (4.1.8)
activerecord-sqlanywhere-adapter (1.0.0)
arel (5.0.0)
sqlanywhere (0.1.6)
Thx, Pascal
I use another gem that works perfectly with SQLAnywhwere:
gem 'activerecord-sqlanywhere-adapter', :git => 'git://github.com/Sharagoz/activerecord-sqlanywhere-adapter.git', :branch => 'rails40'
Just put the line above in the gem file, run bundle install, configure database.yml correctly and go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
9 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.