<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Ruby - ActiveRecord in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/ruby-activerecord/qaa-p/13847877#M4878720</link>
    <description>&lt;P&gt;how can i load the arel-visitor for sqlanywhere? i think, there ist my problem:&lt;/P&gt;
&lt;PRE&gt;require 'rubygems'
require 'active_record'
require 'active_record/connection_adapters/abstract_adapter'
require 'active_record/connection_adapters/sqlanywhere_adapter'

ActiveRecord::Base.establish_connection(adapter: "sqlanywhere", database: "demo", user: "DBA", password: "***", server: "demo12")
ActiveRecord::Base.connection

class Contact &amp;lt; ActiveRecord::Base
end

Contact.select('id')

Error-Message:
...in `to_sql': undefined method `accept' for nil:NilClass (NoMethodError)
&lt;/PRE&gt;

&lt;P&gt;Thanks, Pascal&lt;/P&gt;</description>
    <pubDate>Thu, 18 Dec 2014 04:21:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-12-18T04:21:11Z</dc:date>
    <item>
      <title>Ruby - ActiveRecord</title>
      <link>https://community.sap.com/t5/technology-q-a/ruby-activerecord/qaq-p/13847875</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;can somebody help me? Where is my Misstake?
Running is the Example-PersonalServer of the Standard-Installation.&lt;/P&gt;
&lt;PRE class="codehilite"&gt;&lt;CODE&gt;require 'rubygems'
require 'active_record'

ActiveRecord::Base.establish_connection(adapter: "sqlanywhere", database: "demo", user: "DBA", password: "***", server: "demo12")

class Contacts &amp;lt; ActiveRecord::Base
  self.table_name = 'Contacts'
end

res = Contacts.find(:all)

Error: in `build_arel': undefined method `bind_values' for #&amp;lt;Arel::SelectManager:0x270faf8&amp;gt; (NoMethodError)


&lt;P&gt;I use:
activerecord (4.1.8)
activerecord-sqlanywhere-adapter (1.0.0)
arel (5.0.0)
sqlanywhere (0.1.6)&lt;/P&gt;
&lt;P&gt;Thx, Pascal&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Dec 2014 08:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ruby-activerecord/qaq-p/13847875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-17T08:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ruby - ActiveRecord</title>
      <link>https://community.sap.com/t5/technology-q-a/ruby-activerecord/qaa-p/13847877#M4878720</link>
      <description>&lt;P&gt;how can i load the arel-visitor for sqlanywhere? i think, there ist my problem:&lt;/P&gt;
&lt;PRE&gt;require 'rubygems'
require 'active_record'
require 'active_record/connection_adapters/abstract_adapter'
require 'active_record/connection_adapters/sqlanywhere_adapter'

ActiveRecord::Base.establish_connection(adapter: "sqlanywhere", database: "demo", user: "DBA", password: "***", server: "demo12")
ActiveRecord::Base.connection

class Contact &amp;lt; ActiveRecord::Base
end

Contact.select('id')

Error-Message:
...in `to_sql': undefined method `accept' for nil:NilClass (NoMethodError)
&lt;/PRE&gt;

&lt;P&gt;Thanks, Pascal&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2014 04:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ruby-activerecord/qaa-p/13847877#M4878720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-18T04:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ruby - ActiveRecord</title>
      <link>https://community.sap.com/t5/technology-q-a/ruby-activerecord/qaa-p/13847876#M4878719</link>
      <description>&lt;P&gt;I use another gem that works perfectly with SQLAnywhwere:&lt;/P&gt;
&lt;P&gt;gem 'activerecord-sqlanywhere-adapter', :git =&amp;gt; &lt;A href="http://'git://github.com"&gt;'git://github.com&lt;/A&gt;/Sharagoz/activerecord-sqlanywhere-adapter.git', :branch =&amp;gt; 'rails40'&lt;/P&gt;
&lt;P&gt;Just put the line above in the gem file, run bundle install, configure database.yml correctly and go.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2014 07:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ruby-activerecord/qaa-p/13847876#M4878719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-18T07:11:54Z</dc:date>
    </item>
  </channel>
</rss>

