Getting Started


#1

Experienced developer here just attacking Ruby on Rails.

So, I bought myself a book (Beginning Ruby on Rails - Holzner) and
proceeded to follow the tutorial for the first project. I start up
Webrick which seems to be working properly. Then, after
editing/creating the two simple files per the instructions I point my
browser at http://localhost:3000/app/greeting. Instead of seeing the
result I was expecting, I got:

=====================
We’re sorry, but something went wrong.
We’ve been notified about this issue and we’ll take a look at it
shortly.

Now, I’ve actually tried a couple of different tutorials with the same
result. When this is displayed in my browser, I also get this webrick
logging (below) in the dos box it is running in, but have no idea what
it means.

Since I’ve been stuck on this a couple days if anyone can point me to an
approach to getting past this I will greatly appreciate it. Everything
I’ve done with the tutorial seems to have worked correctly through this
process – the rails command, the generate controller, starting webrick,
all seem straightforward and like they’re working as expected.

TIA

Dave

/!\ FAILSAFE /!\ Fri Mar 20 00:12:27 -0500 2009
Status: 500 Internal Server Error
no such file to load – sqlite3
C:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:i
n gem_original_require' C:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:i nrequire’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_
support/dependencies.rb:156:in require' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_ support/dependencies.rb:521:innew_constants_in’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_
support/dependencies.rb:156:in require' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_ support/core_ext/kernel/requires.rb:7:inrequire_library_or_gem’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_
support/core_ext/kernel/reporting.rb:11:in silence_warnings' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_ support/core_ext/kernel/requires.rb:5:inrequire_library_or_gem’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/sqlite3_adapter.rb:10:in sqlite3_connection' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r ecord/connection_adapters/abstract/connection_pool.rb:223:insend’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:223:in
new_connection' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r ecord/connection_adapters/abstract/connection_pool.rb:245:incheckout_new_conne
ction’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:188:in checkout' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r ecord/connection_adapters/abstract/connection_pool.rb:184:inloop’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:184:in checkout' C:/Program Files/ruby/lib/ruby/1.8/monitor.rb:242:insynchronize’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:183:in checkout' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r ecord/connection_adapters/abstract/connection_pool.rb:98:inconnection’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:326:in
retrieve_connectio n' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r ecord/connection_adapters/abstract/connection_specification.rb:123:inretrieve_
connection’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_specification.rb:115:in
connectio n' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r ecord/query_cache.rb:9:incache’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/query_cache.rb:28:in call' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r ecord/connection_adapters/abstract/connection_pool.rb:361:incall’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/head.rb:9:in call' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con troller/vendor/rack-1.0/rack/methodoverride.rb:24:incall’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/params_parser.rb:15:in call' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con troller/rewindable_input.rb:25:incall’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/session/cookie_store.rb:93:in call' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con troller/reloader.rb:9:incall’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/failsafe.rb:11:in call' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con troller/vendor/rack-1.0/rack/lock.rb:11:incall’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/lock.rb:11:in synchronize' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con troller/vendor/rack-1.0/rack/lock.rb:11:incall’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/dispatcher.rb:106:in call' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/stat ic.rb:31:incall’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/urlmap.rb:46:in call' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con troller/vendor/rack-1.0/rack/urlmap.rb:40:ineach’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/urlmap.rb:40:in call' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/log_ tailer.rb:17:incall’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/content_length.rb:13:in call' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con troller/vendor/rack-1.0/rack/handler/webrick.rb:46:inservice’
C:/Program Files/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in
service' C:/Program Files/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:173:in
start_thread' C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:162:instart’
C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:162:in
start_thread' C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:95:instart’
C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:92:in each' C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:92:instart’
C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:23:in start' C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:82:instart’
C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/handler/webrick.rb:13:in run' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server .rb:111 C:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:i ngem_original_require’
C:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:i
n `require’
script/server:3


#2

Quoting David J. removed_email_address@domain.invalid:

=====================
Since I’ve been stuck on this a couple days if anyone can point me to an
Status: 500 Internal Server Error
no such file to load – sqlite3
[snip]

The sqlite3 gem is not installed. This is now the default database
adapter.
Rails is a fast moving target and tutorials are quickly out of date. It
used
to be MySQL (at least on Linux and I think MacOS). If you have
installed a
different database adapter, set the correct value in
config\database.yml.
Otherwise, install the sqlite3.

HTH,
Jeffrey