I did what the link said. I made the changes to the database.yml file
(mysql => jdbcmysql). Now when I try to run it, the page pops up and I
get this:

 NameError in PostsController#index

uninitialized constant ApplicationController

RAILS_ROOT: C:/Documents and Settings/Owner/My Documents/
NetBeansProjects/rails_associations/solutions/exercise0/rubyweblog
Application Trace | Framework Trace | Full Trace

C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:443:in
`load_missing_constant'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in
`const_missing_with_dependencies'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:92:in
`const_missing'
C:/Documents and Settings/Owner/My Documents/NetBeansProjects/
rails_associations/solutions/exercise0/rubyweblog/app/controllers/
posts_controller.rb:1
C:/Documents and Settings/Owner/My Documents/NetBeansProjects/
rails_associations/solutions/exercise0/rubyweblog/app/controllers/
posts_controller.rb:380:in `load'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:380:in
`load_file'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in
`new_constants_in'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:379:in
`load_file'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:259:in
`require_or_load'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:425:in
`load_missing_constant'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in
`const_missing_with_dependencies'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/dependencies.rb:92:in
`const_missing'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/inflector.rb:361:in
`constantize'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/inflector.rb:360:in `each'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/inflector.rb:360:in
`constantize'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/activesupport-2.3.2/lib/active_support/core_ext/string/
inflections.rb:162:in `constantize'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:
439:in `recognize'
C:/Program Files/NetBeans 6.7 RC3/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:
432:in `call'


If I don't change the mysql to jdbcsql, I just get the page pop up
saying that "something went wrong". I also want to add that I am using
Netbeans IDE 6.7 RC3.

-pk


On Jun 22, 5:02 pm, Sang Shin <[email protected]> wrote:
> JoshLucas wrote:
> > I am getting this error
>
> > !!! The bundled mysql.rb driver has been removed from Rails 2.2.
> > Please install the mysql gem and try again: gem install mysql.
>
> I just added a trouble-shooting section on this error condition.
>
>  http://www.javapassion.com/handsonlabs/rails_associations/#t1
>
> -Sang
>
>
>
> > How should I execute that command? At what prompt should I do it?
>
> > On Jun 20, 4:28 pm, Al Snow <[email protected]> wrote:
> >> Change the message (line 8) in the public/500.html and rerun it.
> >> You are getting this file (html error 500). I would check the
> >> development.log file.
>
> >> Thanks,
> >> Al Snow
> >> Linkedin:http://www.linkedin.com/in/alsnow
> >> Google Talk: jasnow1
> >> Twitter: jasnow
>
> >> Date: Sat, 20 Jun 2009 20:35:11 +0200
> >> Subject: [rails-development] Re: Is anyone getting this error?
> >> From: [email protected]
> >> To: [email protected]
> >> CC: [email protected]
>
> >> have you started mysql?
>
> >> 2009/6/20 JoshLucas <[email protected]>
>
> >> I am trying to run the rubyweblog from the ActiveRecord Association
>
> >> Basics lab. When the page pops up, here is what I get:
>
> >> We're sorry, but something went wrong.
>
> >> We've been notified about this issue and we'll take a look at it
>
> >> shortly.
>
> >> Is anyone else getting this?
>
> >> _________________________________________________________________
> >> Bing™  brings you maps, menus, and reviews organized in one place.   Try 
> >> it 
> >> now.http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&cre...
>
> --
> ---------------------------------------------------------------
>          **** Java Certification Day, Hong Kong ****
>                June 18th, 2008  Hong Kong
>      http://hk.sun.com/sunnews/events/2009/javacertday/
>
>             Sang Shin, [email protected]
>      http://www.javapassion.com/SangShinSchedule.html
>           (Life is worth living... with Passion!)
> ---------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to