I’ve upgraded to rails 3.2.
I’m using jruby-1.6.5.
When I run db:migrate rake abort with message “undefined method
`accept’ for nil:NilClass”.
I had not that problem with jruby-1.6.5 and rails 3.1.
I’ve submited the bug to jira.
msan
January 21, 2012, 10:02am
2
On 20 January 2012 21:11, Mauro [email protected] wrote:
I’ve upgraded to rails 3.2.
I’m using jruby-1.6.5.
When I run db:migrate rake abort with message “undefined method
`accept’ for nil:NilClass”.
I had not that problem with jruby-1.6.5 and rails 3.1.
I’ve submited the bug to jira.
Someone have the same problem?
msan
January 22, 2012, 12:13am
3
On 21 January 2012 10:01, Mauro [email protected] wrote:
On 20 January 2012 21:11, Mauro [email protected] wrote:
I’ve upgraded to rails 3.2.
I’m using jruby-1.6.5.
When I run db:migrate rake abort with message “undefined method
`accept’ for nil:NilClass”.
I had not that problem with jruby-1.6.5 and rails 3.1.
I’ve submited the bug to jira.
Someone have the same problem?
It seems so strange to me that none has reported to have the same
problem after upgrade to rails 3.2.
msan
January 23, 2012, 2:36pm
4
I am getting the same error, and I am using a SQLite database.
msan
January 22, 2012, 12:16am
5
that’s the trace:
activerecord (3.2.0)
lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
to_sql' activerecord (3.2.0) lib/active_record/connection_adapters/abstract/query_cache.rb:60:in
select_all’
activerecord (3.2.0) lib/active_record/querying.rb:38:in find_by_sql' activerecord (3.2.0) lib/active_record/explain.rb:38:in
logging_query_plan’
activerecord (3.2.0) lib/active_record/querying.rb:37:in find_by_sql' activerecord (3.2.0) lib/active_record/relation.rb:170:in
exec_queries’
activerecord (3.2.0) lib/active_record/relation.rb:159:in to_a' activerecord (3.2.0) lib/active_record/explain.rb:31:in
logging_query_plan’
activerecord (3.2.0) lib/active_record/relation.rb:158:in to_a' activerecord (3.2.0) lib/active_record/relation/finder_methods.rb:159:in
all’
org/jruby/RubyBasicObject.java:1688:in __send__' activerecord (3.2.0) lib/active_record/querying.rb:5:in
all’
app/controllers/companies_controller.rb:14:in index' org/jruby/RubyBasicObject.java:1688:in
send ’
org/jruby/RubyKernel.java:2114:in send' actionpack (3.2.0) lib/action_controller/metal/implicit_render.rb:4:in
send_action’
actionpack (3.2.0) lib/abstract_controller/base.rb:167:in
process_action' actionpack (3.2.0) lib/action_controller/metal/rendering.rb:10:in
process_action’
actionpack (3.2.0) lib/abstract_controller/callbacks.rb:18:in
process_action' activesupport (3.2.0) lib/active_support/callbacks.rb:439:in
_run__796208665__process_action__1096936011__callbacks’
org/jruby/RubyBasicObject.java:1688:in __send__' org/jruby/RubyKernel.java:2114:in
send’
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in
__run_callback' activesupport (3.2.0) lib/active_support/callbacks.rb:390:in
_run_process_action_callbacks’
org/jruby/RubyBasicObject.java:1694:in __send__' org/jruby/RubyKernel.java:2118:in
send’
activesupport (3.2.0) lib/active_support/callbacks.rb:81:in
run_callbacks' actionpack (3.2.0) lib/abstract_controller/callbacks.rb:17:in
process_action’
actionpack (3.2.0) lib/action_controller/metal/rescue.rb:29:in
process_action' actionpack (3.2.0) lib/action_controller/metal/instrumentation.rb:30:in
process_action’
activesupport (3.2.0) lib/active_support/notifications.rb:123:in
instrument' activesupport (3.2.0) lib/active_support/notifications/instrumenter.rb:20:in
instrument’
activesupport (3.2.0) lib/active_support/notifications.rb:123:in
instrument' actionpack (3.2.0) lib/action_controller/metal/instrumentation.rb:29:in
process_action’
actionpack (3.2.0)
lib/action_controller/metal/params_wrapper.rb:205:in process_action' activerecord (3.2.0) lib/active_record/railties/controller_runtime.rb:18:in
process_action’
actionpack (3.2.0) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.0) lib/abstract_controller/rendering.rb:45:in
process’
actionpack (3.2.0) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.0) lib/action_controller/metal/rack_delegation.rb:14:in
dispatch’
actionpack (3.2.0) lib/action_controller/metal.rb:246:in action' org/jruby/RubyProc.java:258:in
call’
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:66:in
dispatch' actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:30:in
call’
journey (1.0.0) lib/journey/router.rb:60:in call' org/jruby/RubyArray.java:1612:in
each’
journey (1.0.0) lib/journey/router.rb:48:in call' actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:570:in
call’
sass (3.1.12) lib/sass/plugin/rack.rb:54:in call' warden (1.1.0) lib/warden/manager.rb:35:in
call’
org/jruby/RubyKernel.java:1206:in catch' warden (1.1.0) lib/warden/manager.rb:34:in
call’
actionpack (3.2.0)
lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.0) lib/rack/etag.rb:23:in
call’
rack (1.4.0) lib/rack/conditionalget.rb:25:in call' actionpack (3.2.0) lib/action_dispatch/middleware/head.rb:14:in
call’
remotipart (1.0.1) lib/remotipart/middleware.rb:30:in call' actionpack (3.2.0) lib/action_dispatch/middleware/params_parser.rb:21:in
call’
actionpack (3.2.0) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.0) lib/rack/session/abstract/id.rb:205:in
context’
rack (1.4.0) lib/rack/session/abstract/id.rb:200:in call' actionpack (3.2.0) lib/action_dispatch/middleware/cookies.rb:338:in
call’
activerecord (3.2.0) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in
call’
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:28:in
call' activesupport (3.2.0) lib/active_support/callbacks.rb:408:in
_run__453674643__call__1045394743__callbacks’
org/jruby/RubyBasicObject.java:1688:in __send__' org/jruby/RubyKernel.java:2114:in
send’
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in
__run_callback' activesupport (3.2.0) lib/active_support/callbacks.rb:390:in
_run_call_callbacks’
org/jruby/RubyBasicObject.java:1688:in __send__' org/jruby/RubyKernel.java:2114:in
send’
activesupport (3.2.0) lib/active_support/callbacks.rb:81:in
run_callbacks' actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in
call’
actionpack (3.2.0) lib/action_dispatch/middleware/reloader.rb:65:in
call' actionpack (3.2.0) lib/action_dispatch/middleware/remote_ip.rb:31:in
call’
actionpack (3.2.0)
lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.0) lib/action_dispatch/middleware/show_exceptions.rb:56:in
call’
railties (3.2.0) lib/rails/rack/logger.rb:26:in call_app' railties (3.2.0) lib/rails/rack/logger.rb:16:in
call’
actionpack (3.2.0) lib/action_dispatch/middleware/request_id.rb:22:in
call' rack (1.4.0) lib/rack/methodoverride.rb:21:in
call’
rack (1.4.0) lib/rack/runtime.rb:17:in call' activesupport (3.2.0) lib/active_support/cache/strategy/local_cache.rb:72:in
call’
rack (1.4.0) lib/rack/lock.rb:15:in call' actionpack (3.2.0) lib/action_dispatch/middleware/static.rb:53:in
call’
railties (3.2.0) lib/rails/engine.rb:479:in call' railties (3.2.0) lib/rails/application.rb:220:in
call’
rack (1.4.0) lib/rack/content_length.rb:14:in call' railties (3.2.0) lib/rails/rack/log_tailer.rb:14:in
call’
rack (1.4.0) lib/rack/handler/webrick.rb:59:in service' /home/mauro/jruby/lib/ruby/1.9/webrick/httpserver.rb:111:in
service’
/home/mauro/jruby/lib/ruby/1.9/webrick/httpserver.rb:70:in run' /home/mauro/jruby/lib/ruby/1.9/webrick/server.rb:183:in
start_thread’
msan
January 23, 2012, 9:14pm
6
I get the same error, and using mysql adapter – development environment
on OSX (haven’t tested on production yet)
activerecord (3.2.0)
lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
to_sql' activerecord (3.2.0) lib/active_record/connection_adapters/abstract/query_cache.rb:60:in
select_all’
activerecord (3.2.0) lib/active_record/querying.rb:38:in block in find_by_sql' activerecord (3.2.0) lib/active_record/explain.rb:38:in
logging_query_plan’
activerecord (3.2.0) lib/active_record/querying.rb:37:in find_by_sql' activerecord (3.2.0) lib/active_record/relation.rb:170:in
exec_queries’
activerecord (3.2.0) lib/active_record/relation.rb:159:in `block in
to_a’
msan
January 23, 2012, 10:52pm
7
I’m getting the error on Ubuntu when running an Oracle query. MRI Ruby
1.9.3-p0
msan
January 23, 2012, 11:24pm
8
Opened an issue in the rails github
opened 10:21PM - 23 Jan 12 UTC
closed 10:07PM - 02 Feb 12 UTC
Getting the error `undefined method `accept' for nil:NilClass` in my controller.… This is on the development environment running on OSX with mysql. Below is the full stack trace and also my bundle/gem setup information.
``` sh
$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]
```
RAILS FRAMEWORK TRACE
```
activerecord (3.2.0) lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `to_sql'
activerecord (3.2.0) lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'
activerecord (3.2.0) lib/active_record/querying.rb:38:in `block in find_by_sql'
activerecord (3.2.0) lib/active_record/explain.rb:38:in `logging_query_plan'
activerecord (3.2.0) lib/active_record/querying.rb:37:in `find_by_sql'
activerecord (3.2.0) lib/active_record/relation.rb:170:in `exec_queries'
activerecord (3.2.0) lib/active_record/relation.rb:159:in `block in to_a'
activerecord (3.2.0) lib/active_record/explain.rb:31:in `logging_query_plan'
activerecord (3.2.0) lib/active_record/relation.rb:158:in `to_a'
activerecord (3.2.0) lib/active_record/relation/finder_methods.rb:377:in `find_first'
activerecord (3.2.0) lib/active_record/relation/finder_methods.rb:122:in `first'
activerecord (3.2.0) lib/active_record/querying.rb:5:in `first'
actionpack (3.2.0) lib/action_controller/metal.rb:246:in `new'
actionpack (3.2.0) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:66:in `call'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:66:in `dispatch'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:30:in `call'
journey (1.0.0) lib/journey/router.rb:60:in `block in call'
journey (1.0.0) lib/journey/router.rb:48:in `each'
journey (1.0.0) lib/journey/router.rb:48:in `call'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:570:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.1) lib/rack/etag.rb:23:in `call'
rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/cookies.rb:338:in `call'
activerecord (3.2.0) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in `_run__359795530058627940__call__1911828153620681267__callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.0) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/reloader.rb:65:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.0) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.0) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.0) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/static.rb:53:in `call'
railties (3.2.0) lib/rails/engine.rb:479:in `call'
railties (3.2.0) lib/rails/application.rb:220:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.0) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
```
Gemfile
``` ruby
source 'http://rubygems.org'
gem 'rails', '3.2.0'
gem 'mysql2', '0.2.6'
# Gems used only for assets and not required in production by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'
gem 'uglifier', '>= 1.0.3'
end
# Deploy with Capistrano
# gem 'capistrano'
gem 'rabl'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
group :development, :test do
gem 'annotate'
gem 'simplecov'
end
```
BUNDLE show
``` sh
$ bundle show
Gems included by the bundle:
* actionmailer (3.2.0)
* actionpack (3.2.0)
* activemodel (3.2.0)
* activerecord (3.2.0)
* activeresource (3.2.0)
* activesupport (3.2.0)
* annotate (2.4.0)
* arel (3.0.0)
* builder (3.0.0)
* bundler (1.0.21)
* coffee-rails (3.2.1)
* coffee-script (2.2.0)
* coffee-script-source (1.2.0)
* erubis (2.7.0)
* execjs (1.3.0)
* hike (1.2.1)
* i18n (0.6.0)
* journey (1.0.0)
* json (1.6.5)
* mail (2.4.1)
* mime-types (1.17.2)
* multi_json (1.0.4)
* mysql2 (0.2.6)
* polyglot (0.3.3)
* rabl (0.5.3)
* rack (1.4.1)
* rack-cache (1.1)
* rack-ssl (1.3.2)
* rack-test (0.6.1)
* rails (3.2.0)
* railties (3.2.0)
* rake (0.9.2.2)
* rdoc (3.12)
* sass (3.1.12)
* sass-rails (3.2.3)
* simplecov (0.5.4)
* simplecov-html (0.5.3)
* sprockets (2.1.2)
* thor (0.14.6)
* tilt (1.3.3)
* treetop (1.4.10)
* tzinfo (0.3.31)
* uglifier (1.2.2)
```
msan
January 23, 2012, 9:20pm
9
Hi.
We have a JIRA ticket now: https://jira.codehaus.org/browse/JRUBY-6363
This is most likely a JRuby issue (and much less likely JDBC
adapter/Rails issue).
msan
January 23, 2012, 11:37pm
10
I was able to FIX the issue by getting the latest mysql2 gem. In my gem
file, I has a specific older vesion and removing the version and
updating the bundle resolved the issue.
Here’s the closing comment from GitHub:
opened 10:21PM - 23 Jan 12 UTC
closed 10:07PM - 02 Feb 12 UTC
Getting the error `undefined method `accept' for nil:NilClass` in my controller.… This is on the development environment running on OSX with mysql. Below is the full stack trace and also my bundle/gem setup information.
``` sh
$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]
```
RAILS FRAMEWORK TRACE
```
activerecord (3.2.0) lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `to_sql'
activerecord (3.2.0) lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'
activerecord (3.2.0) lib/active_record/querying.rb:38:in `block in find_by_sql'
activerecord (3.2.0) lib/active_record/explain.rb:38:in `logging_query_plan'
activerecord (3.2.0) lib/active_record/querying.rb:37:in `find_by_sql'
activerecord (3.2.0) lib/active_record/relation.rb:170:in `exec_queries'
activerecord (3.2.0) lib/active_record/relation.rb:159:in `block in to_a'
activerecord (3.2.0) lib/active_record/explain.rb:31:in `logging_query_plan'
activerecord (3.2.0) lib/active_record/relation.rb:158:in `to_a'
activerecord (3.2.0) lib/active_record/relation/finder_methods.rb:377:in `find_first'
activerecord (3.2.0) lib/active_record/relation/finder_methods.rb:122:in `first'
activerecord (3.2.0) lib/active_record/querying.rb:5:in `first'
actionpack (3.2.0) lib/action_controller/metal.rb:246:in `new'
actionpack (3.2.0) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:66:in `call'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:66:in `dispatch'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:30:in `call'
journey (1.0.0) lib/journey/router.rb:60:in `block in call'
journey (1.0.0) lib/journey/router.rb:48:in `each'
journey (1.0.0) lib/journey/router.rb:48:in `call'
actionpack (3.2.0) lib/action_dispatch/routing/route_set.rb:570:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.1) lib/rack/etag.rb:23:in `call'
rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/cookies.rb:338:in `call'
activerecord (3.2.0) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in `_run__359795530058627940__call__1911828153620681267__callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.0) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/reloader.rb:65:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.0) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.0) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.0) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/static.rb:53:in `call'
railties (3.2.0) lib/rails/engine.rb:479:in `call'
railties (3.2.0) lib/rails/application.rb:220:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.0) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
```
Gemfile
``` ruby
source 'http://rubygems.org'
gem 'rails', '3.2.0'
gem 'mysql2', '0.2.6'
# Gems used only for assets and not required in production by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'
gem 'uglifier', '>= 1.0.3'
end
# Deploy with Capistrano
# gem 'capistrano'
gem 'rabl'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
group :development, :test do
gem 'annotate'
gem 'simplecov'
end
```
BUNDLE show
``` sh
$ bundle show
Gems included by the bundle:
* actionmailer (3.2.0)
* actionpack (3.2.0)
* activemodel (3.2.0)
* activerecord (3.2.0)
* activeresource (3.2.0)
* activesupport (3.2.0)
* annotate (2.4.0)
* arel (3.0.0)
* builder (3.0.0)
* bundler (1.0.21)
* coffee-rails (3.2.1)
* coffee-script (2.2.0)
* coffee-script-source (1.2.0)
* erubis (2.7.0)
* execjs (1.3.0)
* hike (1.2.1)
* i18n (0.6.0)
* journey (1.0.0)
* json (1.6.5)
* mail (2.4.1)
* mime-types (1.17.2)
* multi_json (1.0.4)
* mysql2 (0.2.6)
* polyglot (0.3.3)
* rabl (0.5.3)
* rack (1.4.1)
* rack-cache (1.1)
* rack-ssl (1.3.2)
* rack-test (0.6.1)
* rails (3.2.0)
* railties (3.2.0)
* rake (0.9.2.2)
* rdoc (3.12)
* sass (3.1.12)
* sass-rails (3.2.3)
* simplecov (0.5.4)
* simplecov-html (0.5.3)
* sprockets (2.1.2)
* thor (0.14.6)
* tilt (1.3.3)
* treetop (1.4.10)
* tzinfo (0.3.31)
* uglifier (1.2.2)
```
msan
January 26, 2012, 6:17pm
11
Same case using ruby-oci8(v2.1.0) along with oracle_enhanced(v1.4.0)
adapters. It worked with Rails 3.1. Neither console nor rake work. I
guess the problem is from oracle_enhanced adapter because the ruby-oci8
worked (OCI8.new …).
msan
January 23, 2012, 11:41pm
12
On 23 January 2012 23:37, Shyam H. [email protected] wrote:
I was able to FIX the issue by getting the latest mysql2 gem. In my gem
file, I has a specific older vesion and removing the version and
updating the bundle resolved the issue.
I’m using postgres and I’ve still the issue.
msan
January 26, 2012, 7:15pm
13
David W. wrote in post #1042688:
Same case using ruby-oci8(v2.1.0) along with oracle_enhanced(v1.4.0)
adapters. It worked with Rails 3.1. Neither console nor rake work. I
guess the problem is from oracle_enhanced adapter because the ruby-oci8
worked (OCI8.new …).
I have to uninstall rails v3.2 and install rails 3.1 to make my app
work. Thanks!
msan
February 1, 2012, 10:39pm
14
After upgrading activerecord-oracle_enhanced-adapter to 1.4.1, it is now
working for me against both MySQL and Oracle from Rails 3.2.1 and MRI
Ruby 1.9.3-p0.
Thank you Raimonds Simanovskis & Edgars Beigarts!
msan
January 27, 2012, 8:34am
15
On 26 January 2012 19:15, David W. [email protected] wrote:
David W. wrote in post #1042688:
Same case using ruby-oci8(v2.1.0) along with oracle_enhanced(v1.4.0)
adapters. It worked with Rails 3.1. Neither console nor rake work. I
guess the problem is from oracle_enhanced adapter because the ruby-oci8
worked (OCI8.new …).
I have to uninstall rails v3.2 and install rails 3.1 to make my app
work. Thanks!
I’ve done the same, but I hope the bug is resolved soon.
msan
February 4, 2012, 12:11am
16
Hi,
On 27/01/2012 07:32, Mauro wrote:
I’ve done the same, but I hope the bug is resolved soon.
As a follow-up to this in case someone comes across this thread (as I
did), this was a AR-JDBC issue that’s now fixed.
$ bundle update activerecord-jdbc-adapter
fixes the problem for me.
Regards,
Sébastien.