So far I’m disappointed with what I see as red flags. I follow along
what
seems like foolproof instructions. I install everything, rails new
/some/new/app cd to the directory and rails server and my worst fears
cryptic useless stack trace…so I copy the top line, search for stuff
on
this sqllite3 adaptor to fix it, I type the gem install command it
mentions
(gem install activerecord-sqllite3-adaptor) I copy and paste that so
it’s
no typo and I get ERROR not found (really, ruby on rails prides self on
coming with all dependencies? ya right and if it’s too slow on top of
that,
I might as well go to VS2012 on Windows 8 Metro and RIA services or
eclipse
and EJB 2.0 for masochistic fun)
ERROR: Could not find a valid gem ‘activerecord-sqlite3-adapter’ (>= 0)
in
any repository
ERROR: Possible alternatives: activerecord-jdbcsqlite3-adapter,
activerecord-sqlserver-adapter, activerecord-nulldb-adapter,
activerecord-simpledb-adapter, activerecord-dbslayer-adapter
and as I’m hoping to get to a point where I can see a continuation of
the
tutorial with a toy app, I’m about ready to throw up my hands in despair
thinking this is just a sign of more to come here.:
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:214:in
block in replace_gem': Please install the sqlite3 adapter:
gem install
activerecord-sqlite3-adapter(sqlite3 is not part of the bundle. Add it to Gemfile.) (LoadError) from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/sqlite3_adapter.rb:3:in
<top (required)>’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
require' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
block in require’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in
load_dependency' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
require’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in
resolve_hash_connection' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in
resolve_string_connection’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in
spec' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in
establish_connection’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/railtie.rb:82:in
block (2 levels) in <class:Railtie>' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in
instance_eval’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in
execute_hook' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:43:in
block in run_load_hooks’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in
each' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in
run_load_hooks’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/base.rb:720:in
<top (required)>' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/railtie.rb:88:in
block in class:Railtie’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in
instance_exec' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in
run’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:55:in
block in run_initializers' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in
each’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in
run_initializers' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/application.rb:136:in
initialize!’
from
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in
method_missing' from D:/rubywork/mdatest/config/environment.rb:5:in
<top
(required)>’
from D:/rubywork/mdatest/config.ru:3:in require' from D:/rubywork/mdatest/config.ru:3:in
block in ’