Okay, I figured out my problem with the help of "ruby -e 'puts $:'". I 
had a number of site_ruby directories that LOOKED legit, but weren't 
actually in the load path, who knows.

But it's STILL not actually working. So, no, Aldric, I can't show you in 
a simple ruby program how I'm connecting, because it's still not 
working, heh.

But to get CLOSE to working, I had to:
1) Install the OpenTds libraries
2) Install the ruby sybase-ct libraries. That was the tricky part, and I 
_think_ they're properly installed now.

3) Then we go into to "gem install active-record-sybase-adapter", yes. 
And your ActiveRecord::Base.establish_connection example.

Which for me, STILL, even now that I'm pretty sure I have ruby sybase-ct 
installed properly, just says:

 ActiveRecord::Base.establish_connection(:adapter => 'sybase')
RuntimeError: Please install the sybase adapter: `gem install 
activerecord-sybase-adapter` (no such file to load -- 
active_record/connection_adapters/sybase_adapter)
        from 
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in
 
`establish_connection'


And, yes, I have the gem installed. Beleive it or not, before I had the 
gem installed, it was a DIFFERENT error.


Aldric Giacomoni wrote:
> Alright; can you show me, in a simple ruby program, how you are 
> connecting?
> Also, are you connecting to Sybase ASE?
> Did you do something like this:
> 
> gem install activerecord-sybase-adapter -s http://gems.rubyonrails.org
> 
> require 'activerecord'
> 
> ActiveRecord::Base.establish_connection(
> :stuff => more_stuff )
> ?

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to