That means that $1 is nil. Does the stack trace show which line of
your application code is causing the problem? What are you doing when
you get the error? Post the full stack trace if you can't see what
the problem is.
Did you google for how to upgrade an app to Rails 3, it is not the
easiest thing for a beginner to do?