I followed this tutorial for enable Sybase with Rails
http://wiki.rubyonrails.com/rails/pages/SybaseASEonWin32
and get this error.
RuntimeError in Catalog itemsController#index
ctx_init failed
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/sybsql.rb:251:in `create''
c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/sybsql.rb:251:in
`initialize''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/sybase_adapter.rb:46:in
`new''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/sybase_adapter.rb:46:in
`sybase_connection''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in
`send''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in
`connection_without_query_cache=''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in
`connection=''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:230:in
`retrieve_connection''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
`connection''
c:/ruby/lib/ruby/gems/1.8/gems/composite_primary_keys-0.8.6/lib/composite_primary_keys/base.rb:238:in
`columns''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:257:in
`column_for''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:116:in
`calculate''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:45:in
`count''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/pagination.rb:173:in
`count_collection_for_pagination''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/pagination.rb:197:in
`paginator_and_collection_for''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/pagination.rb:130:in
`paginate''
#{RAILS_ROOT}/app/controllers/catalog_items_controller.rb:15:in `list''
#{RAILS_ROOT}/app/controllers/catalog_items_controller.rb:6:in `index''
I have tried to scaffold one table. It don''t work.
It seems that I don''t get InitialContext.
I use rails 1.2.3, ruby 1.8.5
Can someone help, please?
Roman
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---