Hi There, I am a complete newbie - just doing the training at Lynda.com. I''m having a problem with one of the first exercises. I''ve installed Ruby, Rails, Ruby Gems, etc. I''m using webrick as my local webserver. I''m running an exercise where I have a controller called say_controller with the following content: ---------------------------------------------------------------------- class SayController < ApplicationController def hello end end ------------------------------------------------------------------------- I have a say folder in views and inside is a file called hello.rhtml containing the following text: Hello World! ---------------------------------------------------------------------------- In my browser I ttype: http://localhost:3000/say/hello and I''m expecting to see a screen saying "Hello World" But instead I''m getting an error message: ------------------------------------------------------------------------- MissingSourceFile in SayController#hello no such file to load -- sqlite3 RAILS_ROOT: /Users/daniel/Sites/my_app Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:342:in `new_constants_in'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/core_ext/kernel/requires.rb:7:in `require_library_or_gem'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `connection='' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:259:in `retrieve_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:78:in `connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ query_cache.rb:8:in `cache'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/caching.rb:677:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/filters.rb:685:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/session_management.rb:123:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:388:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:171:in `handle_request'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:115:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:126:in `dispatch_cgi'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:9:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 112:in `handle_dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 78:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 62:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ webrick.rb:66 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:342:in `new_constants_in'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: 39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:342:in `new_constants_in'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/core_ext/kernel/requires.rb:7:in `require_library_or_gem'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `connection='' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:259:in `retrieve_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:78:in `connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ query_cache.rb:8:in `cache'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/caching.rb:677:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/filters.rb:685:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/session_management.rb:123:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:388:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:171:in `handle_request'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:115:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:126:in `dispatch_cgi'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:9:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 112:in `handle_dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 78:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 62:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ webrick.rb:66 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:342:in `new_constants_in'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: 39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 This error occurred while loading the following files: sqlite3 Request Parameters: None Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} ------------------------------------------------------------------ Can anyone give me some clues what to do to solve? Thanks ..... tc --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You need to install the sqlite3 gem. gem install sqlite3 A recent change to Rails changed the default from MySQL to sqlite. If you don''t want to do use sqlite and want to use MySQL, then edit config/database.yml in your Rails app to work with MySQL, or, even easier, regenerate your Rails application like so: rails your_application -d mysql --Jeremy On Feb 3, 2008 10:56 PM, taffyc <starlightdreaming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi There, > I am a complete newbie - just doing the training at Lynda.com. I''m > having a problem with one of the first exercises. > > I''ve installed Ruby, Rails, Ruby Gems, etc. I''m using webrick as my > local webserver. I''m running an exercise where I have a controller > called say_controller with the following content: > > ---------------------------------------------------------------------- > class SayController < ApplicationController > > def hello > end > end > > ------------------------------------------------------------------------- > > I have a say folder in views and inside is a file called hello.rhtml > containing the following text: > > Hello World! > > ---------------------------------------------------------------------------- > > In my browser I ttype: http://localhost:3000/say/hello > > and I''m expecting to see a screen saying "Hello World" > > But instead I''m getting an error message: > > ------------------------------------------------------------------------- > > MissingSourceFile in SayController#hello > > no such file to load -- sqlite3 > > RAILS_ROOT: /Users/daniel/Sites/my_app > Application Trace | Framework Trace | Full Trace > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/core_ext/kernel/requires.rb:7:in > `require_library_or_gem'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/core_ext/kernel/requires.rb:5:in > `require_library_or_gem'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:291:in `send'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:291:in > `connection='' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:259:in > `retrieve_connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:78:in > `connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > query_cache.rb:8:in `cache'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:677:in `perform_action'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `send'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `process_without_filters'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/filters.rb:685:in > `process_without_session_management_support'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/session_management.rb:123:in `process'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:388:in `process'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:171:in `handle_request'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:115:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:9:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 112:in `handle_dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 78:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 62:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > webrick.rb:66 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > 39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > script/server:3 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/core_ext/kernel/requires.rb:7:in > `require_library_or_gem'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/core_ext/kernel/requires.rb:5:in > `require_library_or_gem'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:291:in `send'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:291:in > `connection='' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:259:in > `retrieve_connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:78:in > `connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > query_cache.rb:8:in `cache'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:677:in `perform_action'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `send'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `process_without_filters'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/filters.rb:685:in > `process_without_session_management_support'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/session_management.rb:123:in `process'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:388:in `process'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:171:in `handle_request'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:115:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:9:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 112:in `handle_dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 78:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 62:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > webrick.rb:66 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > 39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > script/server:3 > > This error occurred while loading the following files: > sqlite3 > > Request > > Parameters: > > None > > Show session dump > > --- > flash: !map:ActionController::Flash::FlashHash {} > > > Response > > Headers: > > {"cookie"=>[], > "Cache-Control"=>"no-cache"} > > ------------------------------------------------------------------ > > Can anyone give me some clues what to do to solve? > > Thanks ..... tc > > >-- http://www.jeremymcanally.com/ My books: Ruby in Practice http://www.manning.com/mcanally/ My free Ruby e-book http://www.humblelittlerubybook.com/ My blogs: http://www.mrneighborly.com/ http://www.rubyinpractice.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dude what is the DataBase u using? It seems u don have a database for this application. In yr config folder of the application there is a file called database.yml.. Try to create a database with the name as in the development mode.. From yr log it seems u using sqlite as yr database server..? Is it so..? Try this..> > MissingSourceFile in SayController#hello > > no such file to load -- sqlite3 > >-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeremy, Thanks. I regenerated the application as you suggested - makes complete sense. Now I am still getting an error. (see below) looks like it is still having problems accessing the database even though it knows to look for mysql. Is it expecting a database password?? Mysql::Error in BayController#hello #28000Access denied for user ''root''@''localhost'' (using password: NO) RAILS_ROOT: /Users/daniel/Sites/my_appp Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ vendor/mysql.rb:523:in `read'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ vendor/mysql.rb:153:in `real_connect'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:471:in `connect'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:165:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:88:in `new'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `connection='' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:259:in `retrieve_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:78:in `connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ query_cache.rb:8:in `cache'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/caching.rb:677:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/filters.rb:685:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/session_management.rb:123:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:388:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:171:in `handle_request'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:115:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:126:in `dispatch_cgi'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:9:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 112:in `handle_dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 78:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 62:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ webrick.rb:66 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:342:in `new_constants_in'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: 39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ vendor/mysql.rb:523:in `read'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ vendor/mysql.rb:153:in `real_connect'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:471:in `connect'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:165:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:88:in `new'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `connection='' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:259:in `retrieve_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:78:in `connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ query_cache.rb:8:in `cache'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/caching.rb:677:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/filters.rb:685:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/session_management.rb:123:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:388:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:171:in `handle_request'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:115:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:126:in `dispatch_cgi'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:9:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 112:in `handle_dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 78:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 62:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ webrick.rb:66 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:342:in `new_constants_in'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: 39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 Request Parameters: None Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} On Feb 3, 8:17 pm, "Jeremy McAnally" <jeremymcana...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You need to install the sqlite3 gem. > > gem install sqlite3 > > A recent change to Rails changed the default from MySQL to sqlite. If > you don''t want to do use sqlite and want to use MySQL, then edit > config/database.yml in your Rails app to work with MySQL, or, even > easier, regenerate your Rails application like so: > > rails your_application -d mysql > > --Jeremy > > On Feb 3, 2008 10:56 PM, taffyc <starlightdream...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi There, > > I am a complete newbie - just doing the training at Lynda.com. I''m > > having a problem with one of the first exercises. > > > I''ve installed Ruby, Rails, Ruby Gems, etc. I''m using webrick as my > > local webserver. I''m running an exercise where I have a controller > > called say_controller with the following content: > > > ---------------------------------------------------------------------- > > class SayController < ApplicationController > > > def hello > > end > > end > > > ------------------------------------------------------------------------- > > > I have a say folder in views and inside is a file called hello.rhtml > > containing the following text: > > > Hello World! > > > ---------------------------------------------------------------------------- > > > In my browser I ttype:http://localhost:3000/say/hello > > > and I''m expecting to see a screen saying "Hello World" > > > But instead I''m getting an error message: > > > ------------------------------------------------------------------------- > > > MissingSourceFile in SayController#hello > > > no such file to load -- sqlite3 > > > RAILS_ROOT: /Users/daniel/Sites/my_app > > Application Trace | Framework Trace | Full Trace > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:342:in `new_constants_in'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/core_ext/kernel/requires.rb:7:in > > `require_library_or_gem'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/core_ext/kernel/requires.rb:5:in > > `require_library_or_gem'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in > > `connection='' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:259:in > > `retrieve_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:78:in > > `connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > query_cache.rb:8:in `cache'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/caching.rb:677:in `perform_action'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `process_without_filters'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/filters.rb:685:in > > `process_without_session_management_support'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/session_management.rb:123:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:388:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:171:in `handle_request'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:115:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:9:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 112:in `handle_dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 78:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 62:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > > webrick.rb:66 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:342:in `new_constants_in'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > > 39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > script/server:3 > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:342:in `new_constants_in'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/core_ext/kernel/requires.rb:7:in > > `require_library_or_gem'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/core_ext/kernel/requires.rb:5:in > > `require_library_or_gem'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in > > `connection='' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:259:in > > `retrieve_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:78:in > > `connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > query_cache.rb:8:in `cache'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/caching.rb:677:in `perform_action'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `process_without_filters'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/filters.rb:685:in > > `process_without_session_management_support'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/session_management.rb:123:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:388:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:171:in `handle_request'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:115:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:9:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 112:in `handle_dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 78:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > > ... > > read more »--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
check out for your mysql db password and edit the same in database.yml file. On Feb 4, 2008 10:41 AM, taffyc <starlightdreaming@gmail.com> wrote:> > Jeremy, > > Thanks. I regenerated the application as you suggested - makes > complete sense. Now I am still getting an error. (see below) looks > like it is still having problems accessing the database even though it > knows to look for mysql. Is it expecting a database password?? > > Mysql::Error in BayController#hello > > #28000Access denied for user 'root'@'localhost' (using password: NO) > > RAILS_ROOT: /Users/daniel/Sites/my_appp > Application Trace | Framework Trace | Full Trace > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > vendor/mysql.rb:523:in `read' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > vendor/mysql.rb:153:in `real_connect' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/mysql_adapter.rb:471:in `connect' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/mysql_adapter.rb:165:in `initialize' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/mysql_adapter.rb:88:in `new' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/mysql_adapter.rb:88:in `mysql_connection' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:291:in `send' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:291:in > `connection=' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:259:in > `retrieve_connection' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:78:in > `connection' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > query_cache.rb:8:in `cache' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:677:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `process_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/filters.rb:685:in > `process_without_session_management_support' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/session_management.rb:123:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:388:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:171:in `handle_request' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:115:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:126:in `dispatch_cgi' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 112:in `handle_dispatch' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 78:in `service' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 62:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > webrick.rb:66 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > 39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > script/server:3 > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > vendor/mysql.rb:523:in `read' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > vendor/mysql.rb:153:in `real_connect' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/mysql_adapter.rb:471:in `connect' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/mysql_adapter.rb:165:in `initialize' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/mysql_adapter.rb:88:in `new' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/mysql_adapter.rb:88:in `mysql_connection' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:291:in `send' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:291:in > `connection=' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:259:in > `retrieve_connection' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:78:in > `connection' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > query_cache.rb:8:in `cache' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:677:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `process_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/filters.rb:685:in > `process_without_session_management_support' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/session_management.rb:123:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:388:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:171:in `handle_request' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:115:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:126:in `dispatch_cgi' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 112:in `handle_dispatch' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 78:in `service' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 62:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > webrick.rb:66 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > 39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > script/server:3 > > Request > > Parameters: > > None > > Show session dump > > --- > flash: !map:ActionController::Flash::FlashHash {} > > > Response > > Headers: > > {"cookie"=>[], > "Cache-Control"=>"no-cache"} > > > On Feb 3, 8:17 pm, "Jeremy McAnally" <jeremymcana...@gmail.com> wrote: > > You need to install the sqlite3 gem. > > > > gem install sqlite3 > > > > A recent change to Rails changed the default from MySQL to sqlite. If > > you don't want to do use sqlite and want to use MySQL, then edit > > config/database.yml in your Rails app to work with MySQL, or, even > > easier, regenerate your Rails application like so: > > > > rails your_application -d mysql > > > > --Jeremy > > > > On Feb 3, 2008 10:56 PM, taffyc <starlightdream...@gmail.com> wrote: > > > > > > > > > Hi There, > > > I am a complete newbie - just doing the training at Lynda.com. I'm > > > having a problem with one of the first exercises. > > > > > I've installed Ruby, Rails, Ruby Gems, etc. I'm using webrick as my > > > local webserver. I'm running an exercise where I have a controller > > > called say_controller with the following content: > > > > > ---------------------------------------------------------------------- > > > class SayController < ApplicationController > > > > > def hello > > > end > > > end > > > > > > ------------------------------------------------------------------------- > > > > > I have a say folder in views and inside is a file called hello.rhtml > > > containing the following text: > > > > > Hello World! > > > > > > ---------------------------------------------------------------------------- > > > > > In my browser I ttype:http://localhost:3000/say/hello > > > > > and I'm expecting to see a screen saying "Hello World" > > > > > But instead I'm getting an error message: > > > > > > ------------------------------------------------------------------------- > > > > > MissingSourceFile in SayController#hello > > > > > no such file to load -- sqlite3 > > > > > RAILS_ROOT: /Users/daniel/Sites/my_app > > > Application Trace | Framework Trace | Full Trace > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `gem_original_require' > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/dependencies.rb:496:in `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/dependencies.rb:342:in `new_constants_in' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/dependencies.rb:496:in `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/core_ext/kernel/requires.rb:7:in > > > `require_library_or_gem' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/core_ext/kernel/requires.rb:5:in > > > `require_library_or_gem' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:291:in `send' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:291:in > > > `connection=' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:259:in > > > `retrieve_connection' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:78:in > > > `connection' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > query_cache.rb:8:in `cache' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/caching.rb:677:in `perform_action' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/base.rb:524:in `send' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/base.rb:524:in `process_without_filters' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/filters.rb:685:in > > > `process_without_session_management_support' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/session_management.rb:123:in `process' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/base.rb:388:in `process' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/dispatcher.rb:171:in `handle_request' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/dispatcher.rb:115:in `dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/dispatcher.rb:126:in `dispatch_cgi' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/dispatcher.rb:9:in `dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > > 112:in `handle_dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > > 78:in `service' > > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > > 62:in `dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > > > webrick.rb:66 > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `gem_original_require' > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/dependencies.rb:496:in `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/dependencies.rb:342:in `new_constants_in' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/dependencies.rb:496:in `require' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > > > 39 > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `gem_original_require' > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `require' > > > script/server:3 > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `gem_original_require' > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/dependencies.rb:496:in `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/dependencies.rb:342:in `new_constants_in' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/dependencies.rb:496:in `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/core_ext/kernel/requires.rb:7:in > > > `require_library_or_gem' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > active_support/core_ext/kernel/requires.rb:5:in > > > `require_library_or_gem' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:291:in `send' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:291:in > > > `connection=' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:259:in > > > `retrieve_connection' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:78:in > > > `connection' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > /lib/active_record/ > > > query_cache.rb:8:in `cache' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/caching.rb:677:in `perform_action' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/base.rb:524:in `send' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/base.rb:524:in `process_without_filters' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/filters.rb:685:in > > > `process_without_session_management_support' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/session_management.rb:123:in `process' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/base.rb:388:in `process' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/dispatcher.rb:171:in `handle_request' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/dispatcher.rb:115:in `dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/dispatcher.rb:126:in `dispatch_cgi' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > action_controller/dispatcher.rb:9:in `dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > > 112:in `handle_dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > > 78:in `service' > > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' > > > > ... > > > > read more » > > >-- Cheers, Vaibhav Helping Laymen become Technology Enthusiasts at http://technofriends.wordpress.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi vaibhav, u need to cahnge the database.yml to the following: development: adapter: sqlite database: test_development username: root password: root host: localhost And dont forget to install the gems for sqlite and mysql....!.....otherwise this change will still hang u with the error Vaibhav Pandey wrote:> check out for your mysql db password and edit the same in database.yml > file. > > On Feb 4, 2008 10:41 AM, taffyc <starlightdreaming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> #28000Access denied for user ''root''@''localhost'' (using password: NO) >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ >> action_controller/base.rb:524:in `send'' >> action_controller/dispatcher.rb:171:in `handle_request'' >> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' >> 62:in `dispatch'' >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ >> vendor/mysql.rb:523:in `read'' >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/dispatcher.rb:9:in `dispatch'' >> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' >> `require'' >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> >> >> > >> > > having a problem with one of the first exercises. >> > > end >> ---------------------------------------------------------------------------- >> > > MissingSourceFile in SayController#hello >> > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ >> > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ >> > > connection_adapters/abstract/connection_specification.rb:291:in >> /lib/active_record/ >> > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> > > action_controller/dispatcher.rb:9:in `dispatch'' >> > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' >> > > `require'' >> > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > > active_support/dependencies.rb:342:in `new_constants_in'' >> > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 >> /lib/active_record/ >> > > action_controller/caching.rb:677:in `perform_action'' >> > > action_controller/base.rb:388:in `process'' >> > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: >> > >> > ... >> > >> > read more » >> > >> > > > -- > Cheers, > Vaibhav > Helping Laymen become Technology Enthusiasts at > http://technofriends.wordpress.com-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks everyone, I will get onto this later tonight. One thing I am REALLY confused about though. In the exercise I am currently doing on Lynda.com we have not setup a specific database yet for the exercise. This is supposed to be an interaction between the browser, controller, and view module only. The database comes later in the exercise. I don''t understand why I am having a database interaction/problem when I''m not supposed to be interacting with one yet?? taffyc On Feb 4, 4:01 am, Raghavendra Kamat <rails-mailing-l...@andreas- s.net> wrote:> Hi vaibhav, > u need to cahnge the database.yml to the following: > development: > adapter: sqlite > database: test_development > username: root > password: root > host: localhost > > And dont forget to install the gems for sqlite and > mysql....!.....otherwise this change will still hang u with the error > > > > Vaibhav Pandey wrote: > > check out for your mysql db password and edit the same in database.yml > > file. > > > On Feb 4, 2008 10:41 AM, taffyc <starlightdream...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >> #28000Access denied for user ''root''@''localhost'' (using password: NO) > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > >> action_controller/base.rb:524:in `send'' > >> action_controller/dispatcher.rb:171:in `handle_request'' > >> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > >> 62:in `dispatch'' > >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > >> vendor/mysql.rb:523:in `read'' > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > >> action_controller/dispatcher.rb:9:in `dispatch'' > >> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > >> `require'' > >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > >> > > having a problem with one of the first exercises. > >> > > end > >> ---------------------------------------------------------------------------- > >> > > MissingSourceFile in SayController#hello > >> > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > >> > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > >> > > connection_adapters/abstract/connection_specification.rb:291:in > >> /lib/active_record/ > >> > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > >> > > action_controller/dispatcher.rb:9:in `dispatch'' > >> > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > >> > > `require'' > >> > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > >> > > active_support/dependencies.rb:342:in `new_constants_in'' > >> > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > >> /lib/active_record/ > >> > > action_controller/caching.rb:677:in `perform_action'' > >> > > action_controller/base.rb:388:in `process'' > >> > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > >> > ... > > >> > read more » > > > -- > > Cheers, > > Vaibhav > > Helping Laymen become Technology Enthusiasts at > >http://technofriends.wordpress.com > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 4 Feb 2008, at 20:14, taffyc wrote:> > Thanks everyone, > I will get onto this later tonight. One thing I am REALLY confused > about though. In the exercise I am currently doing on Lynda.com we > have not setup a specific database yet for the exercise. This is > supposed to be an interaction between the browser, controller, and > view module only. The database comes later in the exercise. I don''t > understand why I am having a database interaction/problem when I''m not > supposed to be interacting with one yet?? >Short version: because it''s trying to setup some databasey things for you (to be quite precise it''s trying to setup the query cache, which didn''t exist in older version of rails, which your tutorial was probably written for) Fred> taffyc > > On Feb 4, 4:01 am, Raghavendra Kamat <rails-mailing-l...@andreas- > s.net> wrote: >> Hi vaibhav, >> u need to cahnge the database.yml to the following: >> development: >> adapter: sqlite >> database: test_development >> username: root >> password: root >> host: localhost >> >> And dont forget to install the gems for sqlite and >> mysql....!.....otherwise this change will still hang u with the error >> >> >> >> Vaibhav Pandey wrote: >>> check out for your mysql db password and edit the same in >>> database.yml >>> file. >> >>> On Feb 4, 2008 10:41 AM, taffyc <starlightdream...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>>> #28000Access denied for user ''root''@''localhost'' (using password: >>>> NO) >>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >>>> active_record/ >>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >>>> active_record/ >>>> action_controller/base.rb:524:in `send'' >>>> action_controller/dispatcher.rb:171:in `handle_request'' >>>> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' >>>> 62:in `dispatch'' >>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ >>>> vendor/mysql.rb:523:in `read'' >>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >>>> active_record/ >>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >>>> active_record/ >>>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >>>> action_controller/dispatcher.rb:9:in `dispatch'' >>>> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' >>>> `require'' >>>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> >>>>>> having a problem with one of the first exercises. >>>>>> end >>>> ---------------------------------------------------------------------------- >>>>>> MissingSourceFile in SayController#hello >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ >>>>>> connection_adapters/abstract/connection_specification.rb:291:in >>>> /lib/active_record/ >>>>>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >>>>>> action_controller/dispatcher.rb:9:in `dispatch'' >>>>>> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' >>>>>> `require'' >>>>>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>>>>> 27:in >>>>>> active_support/dependencies.rb:342:in `new_constants_in'' >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 >>>> /lib/active_record/ >>>>>> action_controller/caching.rb:677:in `perform_action'' >>>>>> action_controller/base.rb:388:in `process'' >>>>>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/ >>>>>> webrick_server.rb: >> >>>>> ... >> >>>>> read more » >> >>> -- >>> Cheers, >>> Vaibhav >>> Helping Laymen become Technology Enthusiasts at >>> http://technofriends.wordpress.com >> >> -- >> Posted viahttp://www.ruby-forum.com/. > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
OK. I haven''t done anything with sqlite as I am telling rails to use mysql. Apart from that I have done everything above but it still doesn''t work. heres my current error message below. Any thoughts before I go buy OS 10.5?? Mysql::Error in BayController#hello Can''t connect to local MySQL server through socket ''/tmp/ mysql.sock'' (2) RAILS_ROOT: /Users/daniel/Sites/my_appp Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:471:in `real_connect'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:471:in `connect'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:165:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:88:in `new'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `connection='' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:259:in `retrieve_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:78:in `connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ query_cache.rb:8:in `cache'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/caching.rb:677:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/filters.rb:685:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/session_management.rb:123:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:388:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:171:in `handle_request'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:115:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:126:in `dispatch_cgi'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:9:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 112:in `handle_dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 78:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 62:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ webrick.rb:66 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:342:in `new_constants_in'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: 39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:471:in `real_connect'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:471:in `connect'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:165:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:88:in `new'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:291:in `connection='' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:259:in `retrieve_connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/abstract/connection_specification.rb:78:in `connection'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ query_cache.rb:8:in `cache'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/caching.rb:677:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:524:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/filters.rb:685:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/session_management.rb:123:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:388:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:171:in `handle_request'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:115:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:126:in `dispatch_cgi'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/dispatcher.rb:9:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 112:in `handle_dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 78:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: 62:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ webrick.rb:66 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:342:in `new_constants_in'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/dependencies.rb:496:in `require'' /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: 39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 Request Parameters: None Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} On Feb 4, 3:52 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 4 Feb 2008, at 20:14,taffycwrote: > > > > > Thanks everyone, > > I will get onto this later tonight. One thing I am REALLY confused > > about though. In the exercise I am currently doing on Lynda.com we > > have not setup a specific database yet for the exercise. This is > > supposed to be an interaction between the browser, controller, and > > view module only. The database comes later in the exercise. I don''t > > understand why I am having a database interaction/problem when I''m not > > supposed to be interacting with one yet?? > > Short version: because it''s trying to setup some databasey things for > you (to be quite precise it''s trying to setup the query cache, which > didn''t exist in older version of rails, which your tutorial was > probably written for) > > Fred > > >taffyc > > > On Feb 4, 4:01 am, Raghavendra Kamat <rails-mailing-l...@andreas- > > s.net> wrote: > >> Hi vaibhav, > >> u need to cahnge the database.yml to the following: > >> development: > >> adapter: sqlite > >> database: test_development > >> username: root > >> password: root > >> host: localhost > > >> And dont forget to install the gems for sqlite and > >> mysql....!.....otherwise this change will still hang u with the error > > >> Vaibhav Pandey wrote: > >>> check out for your mysql db password and edit the same in > >>> database.yml > >>> file. > > >>> On Feb 4, 2008 10:41 AM,taffyc<starlightdream...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >>>> #28000Access denied for user ''root''@''localhost'' (using password: > >>>> NO) > >>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > >>>> active_record/ > >>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > >>>> active_record/ > >>>> action_controller/base.rb:524:in `send'' > >>>> action_controller/dispatcher.rb:171:in `handle_request'' > >>>> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > >>>> 62:in `dispatch'' > >>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > >>>> vendor/mysql.rb:523:in `read'' > >>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > >>>> active_record/ > >>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > >>>> active_record/ > >>>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > >>>> action_controller/dispatcher.rb:9:in `dispatch'' > >>>> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > >>>> `require'' > >>>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > >>>>>> having a problem with one of the first exercises. > >>>>>> end > >>>> ---------------------------------------------------------------------------- > >>>>>> MissingSourceFile in SayController#hello > >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > >>>>>> connection_adapters/abstract/connection_specification.rb:291:in > >>>> /lib/active_record/ > >>>>>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > >>>>>> action_controller/dispatcher.rb:9:in `dispatch'' > >>>>>> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > >>>>>> `require'' > >>>>>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > >>>>>> 27:in > >>>>>> active_support/dependencies.rb:342:in `new_constants_in'' > >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > >>>> /lib/active_record/ > >>>>>> action_controller/caching.rb:677:in `perform_action'' > >>>>>> action_controller/base.rb:388:in `process'' > >>>>>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/ > >>>>>> webrick_server.rb: > > >>>>> ... > > >>>>> read more » > > >>> -- > >>> Cheers, > >>> Vaibhav > >>> Helping Laymen become Technology Enthusiasts at > >>>http://technofriends.wordpress.com > > >> -- > >> Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Do a list of your installed gems: gem list Make sure mysql is among them. If not, then install the mysql gem doing: sudo gem install mysql Check to make sure mysql is running by typing: mysql Assuming it is running, type: status That should tell you the UNIX socket (normally /tmp/mysql.sock) Copy that and in your database.yml add the line: socket: /tmp/mysql.sock Try again. On Feb 4, 2008, at 7:34 PM, taffyc wrote:> > OK. I haven''t done anything with sqlite as I am telling rails to use > mysql. Apart from that I have done everything above but it still > doesn''t work. heres my current error message below. Any thoughts > before I go buy OS 10.5?? > > Mysql::Error in BayController#hello > > Can''t connect to local MySQL server through socket ''/tmp/ > mysql.sock'' (2) > > RAILS_ROOT: /Users/daniel/Sites/my_appp > Application Trace | Framework Trace | Full Trace > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/mysql_adapter.rb:471:in `real_connect'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/mysql_adapter.rb:471:in `connect'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/mysql_adapter.rb:165:in `initialize'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/mysql_adapter.rb:88:in `new'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/abstract/connection_specification.rb:291:in `send'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/abstract/connection_specification.rb:291:in > `connection='' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/abstract/connection_specification.rb:259:in > `retrieve_connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/abstract/connection_specification.rb:78:in > `connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > query_cache.rb:8:in `cache'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:677:in `perform_action'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `send'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `process_without_filters'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/filters.rb:685:in > `process_without_session_management_support'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/session_management.rb:123:in `process'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:388:in `process'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:171:in `handle_request'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:115:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:9:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 112:in `handle_dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 78:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 62:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > webrick.rb:66 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > 39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > script/server:3 > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/mysql_adapter.rb:471:in `real_connect'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/mysql_adapter.rb:471:in `connect'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/mysql_adapter.rb:165:in `initialize'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/mysql_adapter.rb:88:in `new'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/abstract/connection_specification.rb:291:in `send'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/abstract/connection_specification.rb:291:in > `connection='' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/abstract/connection_specification.rb:259:in > `retrieve_connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > connection_adapters/abstract/connection_specification.rb:78:in > `connection'' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/ > query_cache.rb:8:in `cache'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:677:in `perform_action'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `send'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `process_without_filters'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/filters.rb:685:in > `process_without_session_management_support'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/session_management.rb:123:in `process'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:388:in `process'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:171:in `handle_request'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:115:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:9:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 112:in `handle_dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 78:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > 62:in `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > webrick.rb:66 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require'' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > 39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > script/server:3 > > Request > > Parameters: > > None > > Show session dump > > --- > flash: !map:ActionController::Flash::FlashHash {} > > > Response > > Headers: > > {"cookie"=>[], > "Cache-Control"=>"no-cache"} > > On Feb 4, 3:52 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> On 4 Feb 2008, at 20:14,taffycwrote: >> >> >> >>> Thanks everyone, >>> I will get onto this later tonight. One thing I am REALLY confused >>> about though. In the exercise I am currently doing on Lynda.com we >>> have not setup a specific database yet for the exercise. This is >>> supposed to be an interaction between the browser, controller, and >>> view module only. The database comes later in the exercise. I don''t >>> understand why I am having a database interaction/problem when I''m >>> not >>> supposed to be interacting with one yet?? >> >> Short version: because it''s trying to setup some databasey things for >> you (to be quite precise it''s trying to setup the query cache, which >> didn''t exist in older version of rails, which your tutorial was >> probably written for) >> >> Fred >> >>> taffyc >> >>> On Feb 4, 4:01 am, Raghavendra Kamat <rails-mailing-l...@andreas- >>> s.net> wrote: >>>> Hi vaibhav, >>>> u need to cahnge the database.yml to the following: >>>> development: >>>> adapter: sqlite >>>> database: test_development >>>> username: root >>>> password: root >>>> host: localhost >> >>>> And dont forget to install the gems for sqlite and >>>> mysql....!.....otherwise this change will still hang u with the >>>> error >> >>>> Vaibhav Pandey wrote: >>>>> check out for your mysql db password and edit the same in >>>>> database.yml >>>>> file. >> >>>>> On Feb 4, 2008 10:41 AM,taffyc<starlightdream...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>>>>> #28000Access denied for user ''root''@''localhost'' (using password: >>>>>> NO) >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >>>>>> active_record/ >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >>>>>> active_record/ >>>>>> action_controller/base.rb:524:in `send'' >>>>>> action_controller/dispatcher.rb:171:in `handle_request'' >>>>>> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' >>>>>> 62:in `dispatch'' >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ >>>>>> vendor/mysql.rb:523:in `read'' >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >>>>>> active_record/ >>>>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >>>>>> active_record/ >>>>>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >>>>>> action_controller/dispatcher.rb:9:in `dispatch'' >>>>>> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' >>>>>> `require'' >>>>>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>>>>> 27:in >> >>>>>>>> having a problem with one of the first exercises. >>>>>>>> end >>>>>> ---------------------------------------------------------------------------- >>>>>>>> MissingSourceFile in SayController#hello >>>>>>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ >>>>>>>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ >>>>>>>> connection_adapters/abstract/connection_specification.rb:291:in >>>>>> /lib/active_record/ >>>>>>>> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >>>>>>>> action_controller/dispatcher.rb:9:in `dispatch'' >>>>>>>> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' >>>>>>>> `require'' >>>>>>>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >>>>>>>> 27:in >>>>>>>> active_support/dependencies.rb:342:in `new_constants_in'' >>>>>>>> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 >>>>>> /lib/active_record/ >>>>>>>> action_controller/caching.rb:677:in `perform_action'' >>>>>>>> action_controller/base.rb:388:in `process'' >>>>>>>> /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/ >>>>>>>> webrick_server.rb: >> >>>>>>> ... >> >>>>>>> read more » >> >>>>> -- >>>>> Cheers, >>>>> Vaibhav >>>>> Helping Laymen become Technology Enthusiasts at >>>>> http://technofriends.wordpress.com >> >>>> -- >>>> Posted viahttp://www.ruby-forum.com/. > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
OK - thanks. Looks like Mysql had shut down. Here is the latest below (Do I need to create the database my_appp_development ??): Mysql::Error in BayController#hello Unknown database ''my_appp_development'' RAILS_ROOT: /Users/daniel/Sites/my_appp ------------------------------------------------------------------- On Feb 4, 8:04 pm, "s.ross" <cwdi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Do a list of your installed gems: > > gem list > > Make sure mysql is among them. If not, then install the mysql gem doing: > > sudo gem install mysql > > Check to make sure mysql is running by typing: > > mysql > > Assuming it is running, type: > > status > > That should tell you the UNIX socket (normally /tmp/mysql.sock) > > Copy that and in your database.yml add the line: > > socket: /tmp/mysql.sock > > Try again. > > On Feb 4, 2008, at 7:34 PM,taffycwrote: > > > > > OK. I haven''t done anything with sqlite as I am telling rails to use > > mysql. Apart from that I have done everything above but it still > > doesn''t work. heres my current error message below. Any thoughts > > before I go buy OS 10.5?? > > > Mysql::Error in BayController#hello > > > Can''t connect to local MySQL server through socket ''/tmp/ > > mysql.sock'' (2) > > > RAILS_ROOT: /Users/daniel/Sites/my_appp > > Application Trace | Framework Trace | Full Trace > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `real_connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:165:in `initialize'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `new'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in > > `connection='' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:259:in > > `retrieve_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:78:in > > `connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > query_cache.rb:8:in `cache'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/caching.rb:677:in `perform_action'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `process_without_filters'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/filters.rb:685:in > > `process_without_session_management_support'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/session_management.rb:123:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:388:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:171:in `handle_request'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:115:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:9:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 112:in `handle_dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 78:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 62:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > > webrick.rb:66 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:342:in `new_constants_in'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > > 39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > script/server:3 > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `real_connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:165:in `initialize'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `new'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in > > `connection='' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:259:in > > `retrieve_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:78:in > > `connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > query_cache.rb:8:in `cache'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/caching.rb:677:in `perform_action'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `process_without_filters'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/filters.rb:685:in > > `process_without_session_management_support'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/session_management.rb:123:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:388:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:171:in `handle_request'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:115:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:9:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 112:in `handle_dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 78:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 62:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > > webrick.rb:66 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:342:in `new_constants_in'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > > 39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > script/server:3 > > > Request > > > Parameters: > > > None > > > Show session dump > > > --- > > flash: !map:ActionController::Flash::FlashHash {} > > > Response > > > Headers: > > > {"cookie"=>[], > > "Cache-Control"=>"no-cache"} > > > On Feb 4, 3:52 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > >> On 4 Feb 2008, at 20:14,taffycwrote: > > >>> Thanks everyone, > >>> I will get onto this later tonight. One thing I am REALLY confused > >>> about though. In the exercise I am currently > > ... > > read more »--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
OK - thanks. Looks like Mysql had shut down. Here is the latest below (Do I need to create the database my_appp_development ??): Mysql::Error in BayController#hello Unknown database ''my_appp_development'' RAILS_ROOT: /Users/daniel/Sites/my_appp ------------------------------------------------------------------- On Feb 4, 8:04 pm, "s.ross" <cwdi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Do a list of your installed gems: > > gem list > > Make sure mysql is among them. If not, then install the mysql gem doing: > > sudo gem install mysql > > Check to make sure mysql is running by typing: > > mysql > > Assuming it is running, type: > > status > > That should tell you the UNIX socket (normally /tmp/mysql.sock) > > Copy that and in your database.yml add the line: > > socket: /tmp/mysql.sock > > Try again. > > On Feb 4, 2008, at 7:34 PM,taffycwrote: > > > > > OK. I haven''t done anything with sqlite as I am telling rails to use > > mysql. Apart from that I have done everything above but it still > > doesn''t work. heres my current error message below. Any thoughts > > before I go buy OS 10.5?? > > > Mysql::Error in BayController#hello > > > Can''t connect to local MySQL server through socket ''/tmp/ > > mysql.sock'' (2) > > > RAILS_ROOT: /Users/daniel/Sites/my_appp > > Application Trace | Framework Trace | Full Trace > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `real_connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:165:in `initialize'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `new'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in > > `connection='' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:259:in > > `retrieve_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:78:in > > `connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > query_cache.rb:8:in `cache'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/caching.rb:677:in `perform_action'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `process_without_filters'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/filters.rb:685:in > > `process_without_session_management_support'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/session_management.rb:123:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:388:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:171:in `handle_request'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:115:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:9:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 112:in `handle_dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 78:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 62:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > > webrick.rb:66 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:342:in `new_constants_in'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > > 39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > script/server:3 > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `real_connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:165:in `initialize'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `new'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in > > `connection='' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:259:in > > `retrieve_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:78:in > > `connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > query_cache.rb:8:in `cache'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/caching.rb:677:in `perform_action'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `process_without_filters'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/filters.rb:685:in > > `process_without_session_management_support'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/session_management.rb:123:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:388:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:171:in `handle_request'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:115:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:9:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 112:in `handle_dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 78:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 62:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > > webrick.rb:66 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:342:in `new_constants_in'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > > 39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > script/server:3 > > > Request > > > Parameters: > > > None > > > Show session dump > > > --- > > flash: !map:ActionController::Flash::FlashHash {} > > > Response > > > Headers: > > > {"cookie"=>[], > > "Cache-Control"=>"no-cache"} > > > On Feb 4, 3:52 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > >> On 4 Feb 2008, at 20:14,taffycwrote: > > >>> Thanks everyone, > >>> I will get onto this later tonight. One thing I am REALLY confused > >>> about though. In the exercise I am currently > > ... > > read more »--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
OK - thanks. Looks like Mysql had shut down. Here is the latest below (Do I need to create the database my_appp_development ??): Mysql::Error in BayController#hello Unknown database ''my_appp_development'' RAILS_ROOT: /Users/daniel/Sites/my_appp ------------------------------------------------------------------- On Feb 4, 8:04 pm, "s.ross" <cwdi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Do a list of your installed gems: > > gem list > > Make sure mysql is among them. If not, then install the mysql gem doing: > > sudo gem install mysql > > Check to make sure mysql is running by typing: > > mysql > > Assuming it is running, type: > > status > > That should tell you the UNIX socket (normally /tmp/mysql.sock) > > Copy that and in your database.yml add the line: > > socket: /tmp/mysql.sock > > Try again. > > On Feb 4, 2008, at 7:34 PM,taffycwrote: > > > > > OK. I haven''t done anything with sqlite as I am telling rails to use > > mysql. Apart from that I have done everything above but it still > > doesn''t work. heres my current error message below. Any thoughts > > before I go buy OS 10.5?? > > > Mysql::Error in BayController#hello > > > Can''t connect to local MySQL server through socket ''/tmp/ > > mysql.sock'' (2) > > > RAILS_ROOT: /Users/daniel/Sites/my_appp > > Application Trace | Framework Trace | Full Trace > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `real_connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:165:in `initialize'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `new'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in > > `connection='' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:259:in > > `retrieve_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:78:in > > `connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > query_cache.rb:8:in `cache'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/caching.rb:677:in `perform_action'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `process_without_filters'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/filters.rb:685:in > > `process_without_session_management_support'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/session_management.rb:123:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:388:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:171:in `handle_request'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:115:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:9:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 112:in `handle_dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 78:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 62:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > > webrick.rb:66 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:342:in `new_constants_in'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > > 39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > script/server:3 > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `real_connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:471:in `connect'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:165:in `initialize'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `new'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/mysql_adapter.rb:88:in `mysql_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:291:in > > `connection='' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:259:in > > `retrieve_connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > connection_adapters/abstract/connection_specification.rb:78:in > > `connection'' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > > active_record/ > > query_cache.rb:8:in `cache'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/caching.rb:677:in `perform_action'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `send'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:524:in `process_without_filters'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/filters.rb:685:in > > `process_without_session_management_support'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/session_management.rb:123:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/base.rb:388:in `process'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:171:in `handle_request'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:115:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:126:in `dispatch_cgi'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > action_controller/dispatcher.rb:9:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 112:in `handle_dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 78:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > 62:in `dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/ > > webrick.rb:66 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:342:in `new_constants_in'' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > active_support/dependencies.rb:496:in `require'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb: > > 39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > script/server:3 > > > Request > > > Parameters: > > > None > > > Show session dump > > > --- > > flash: !map:ActionController::Flash::FlashHash {} > > > Response > > > Headers: > > > {"cookie"=>[], > > "Cache-Control"=>"no-cache"} > > > On Feb 4, 3:52 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > >> On 4 Feb 2008, at 20:14,taffycwrote: > > >>> Thanks everyone, > >>> I will get onto this later tonight. One thing I am REALLY confused > >>> about though. In the exercise I am currently > > ... > > read more »--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 4, 2008, at 9:23 PM, taffyc wrote:> OK - thanks. Looks like Mysql had shut down. Here is the latest below > (Do I need to create the database my_appp_development ??): > > Mysql::Error in BayController#hello > > Unknown database ''my_appp_development'' > > RAILS_ROOT: /Users/daniel/Sites/my_apppYup. mysqladmin -uroot create my_appp_development mysqladmin -uroot create my_appp_test --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Lynda.com tutorials are a bit older. You are using Rails 2.0.2 and there is a change in current version that you must setup a database before developing your application. On Feb 4, 10:14 pm, taffyc <starlightdream...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks everyone, > I will get onto this later tonight. One thing I am REALLY confused > about though. In the exercise I am currently doing on Lynda.com we > have not setup a specific database yet for the exercise. This is > supposed to be an interaction between the browser, controller, and > view module only. The database comes later in the exercise. I don''t > understand why I am having a database interaction/problem when I''m not > supposed to be interacting with one yet?? > > taffyc > > On Feb 4, 4:01 am, Raghavendra Kamat <rails-mailing-l...@andreas- > > s.net> wrote: > > Hi vaibhav, > > u need to cahnge the database.yml to the following: > > development: > > adapter: sqlite > > database: test_development > > username: root > > password: root > > host: localhost > > > And dont forget to install the gems for sqlite and > > mysql....!.....otherwise this change will still hang u with the error > > > Vaibhav Pandey wrote: > > > check out for your mysql db password and edit the same in database.yml > > > file. > > > > On Feb 4, 2008 10:41 AM, taffyc <starlightdream...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > >> #28000Access denied for user ''root''@''localhost'' (using password: NO) > > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > >> action_controller/base.rb:524:in `send'' > > >> action_controller/dispatcher.rb:171:in `handle_request'' > > >> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > >> 62:in `dispatch'' > > >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > >> vendor/mysql.rb:523:in `read'' > > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > >> action_controller/dispatcher.rb:9:in `dispatch'' > > >> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > >> `require'' > > >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > >> > > having a problem with one of the first exercises. > > >> > > end > > >> --------------------------------------------------------------------------- - > > >> > > MissingSourceFile in SayController#hello > > >> > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > >> > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > >> > > connection_adapters/abstract/connection_specification.rb:291:in > > >> /lib/active_record/ > > >> > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > >> > > action_controller/dispatcher.rb:9:in `dispatch'' > > >> > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > >> > > `require'' > > >> > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > >> > > active_support/dependencies.rb:342:in `new_constants_in'' > > >> > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > > >> /lib/active_record/ > > >> > > action_controller/caching.rb:677:in `perform_action'' > > >> > > action_controller/base.rb:388:in `process'' > > >> > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > > >> > ... > > > >> > read more » > > > > -- > > > Cheers, > > > Vaibhav > > > Helping Laymen become Technology Enthusiasts at > > >http://technofriends.wordpress.com > > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank You a thousand times!!!! It works. On Feb 5, 2:30 am, Hikmet <hikmetun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Lynda.com tutorials are a bit older. You are using Rails 2.0.2 and > there is a change in current version that you must setup a database > before developing your application. > > On Feb 4, 10:14 pm,taffyc<starlightdream...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Thanks everyone, > > I will get onto this later tonight. One thing I am REALLY confused > > about though. In the exercise I am currently doing on Lynda.com we > > have not setup a specific database yet for the exercise. This is > > supposed to be an interaction between the browser, controller, and > > view module only. The database comes later in the exercise. I don''t > > understand why I am having a database interaction/problem when I''m not > > supposed to be interacting with one yet?? > > >taffyc > > > On Feb 4, 4:01 am, Raghavendra Kamat <rails-mailing-l...@andreas- > > > s.net> wrote: > > > Hi vaibhav, > > > u need to cahnge the database.yml to the following: > > > development: > > > adapter: sqlite > > > database: test_development > > > username: root > > > password: root > > > host: localhost > > > > And dont forget to install the gems for sqlite and > > > mysql....!.....otherwise this change will still hang u with the error > > > > Vaibhav Pandey wrote: > > > > check out for your mysql db password and edit the same in database.yml > > > > file. > > > > > On Feb 4, 2008 10:41 AM,taffyc<starlightdream...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > >> #28000Access denied for user ''root''@''localhost'' (using password: NO) > > > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > > >> action_controller/base.rb:524:in `send'' > > > >> action_controller/dispatcher.rb:171:in `handle_request'' > > > >> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > > >> 62:in `dispatch'' > > > >> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > >> vendor/mysql.rb:523:in `read'' > > > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > > >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > > >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > >> action_controller/dispatcher.rb:9:in `dispatch'' > > > >> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > > >> `require'' > > > >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > >> > > having a problem with one of the first exercises. > > > >> > > end > > > >> --------------------------------------------------------------------------- - > > > >> > > MissingSourceFile in SayController#hello > > > >> > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > >> > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > > > >> > > connection_adapters/abstract/connection_specification.rb:291:in > > > >> /lib/active_record/ > > > >> > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > > > >> > > action_controller/dispatcher.rb:9:in `dispatch'' > > > >> > > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'' > > > >> > > `require'' > > > >> > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > >> > > active_support/dependencies.rb:342:in `new_constants_in'' > > > >> > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2 > > > >> /lib/active_record/ > > > >> > > action_controller/caching.rb:677:in `perform_action'' > > > >> > > action_controller/base.rb:388:in `process'' > > > >> > > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb: > > > > >> > ... > > > > >> > read more » > > > > > -- > > > > Cheers, > > > > Vaibhav > > > > Helping Laymen become Technology Enthusiasts at > > > >http://technofriends.wordpress.com > > > > -- > > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---