rom-rb / rom-rails

Rails integration for Ruby Object Mapper
http://rom-rb.org
MIT License
159 stars 51 forks source link

`adapter_class': undefined method `to_sym' for nil:NilClass #89

Closed anthony-bernardo closed 6 years ago

anthony-bernardo commented 6 years ago

I cannot setup rom-rails

When I do a "bin/rails", I got :

/var/lib/gems/2.4.0/gems/sequel-5.6.0/lib/sequel/database/connecting.rb:17:inadapter_class': undefined method to_sym' for nil:NilClass (NoMethodError)

# config/initializers/rom.rb
ROM::Rails::Railtie.configure do |config|
  config.gateways[:default] = [:sql, 'localhost'] 
end
gem 'rom'
gem 'rom-sql'
gem 'rom-rails'
anthony-bernardo commented 6 years ago

Resolved by adding :

# Database for rom
gem 'pg'
gem 'sequel_pg', :require => 'sequel'

But the documentation on the Rails setup must be improved.