Actually, connecting to this database works from the console. That is,
doing a simple Session.find(1) will display the right results. However,
rails isn’t even referring to this model to know which database to
So, what I think is lacking is something that connects rails’ use of the
actual session to the Session model that I created.
Resolved this after updating my gems, and then running script/about and
saw that it wasn’t loading the file path correctly.
So, my new problem is when reading session.rb, it says “uninitialized
Odd… After adding that require line, I get the following error when
=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails application starting on http://0.0.0.0:3412
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3412
** Starting Rails with development environment…
warning: already initialized constant OPTIONS
undefined method options' for :Array (NoMethodError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:ingem_original_require’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:inrequire’
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in new_constants_in' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:inrequire’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.