Very simple code throwing "uninitialized constant" error

This code works on an older version of Ruby and Rails but not with Ruby 1.8.6 and Rails 1.2.5. The code is so simple that I can't figure out where the problem is.

profile_controller.rb

class ProfileController < ApplicationController   def show     @profile = Profile.find_by_school_id(params[:id])   end end

I've seen ruby 1.8.6 get fussy about line endings in a way that previous versions weren't. Check all your files use the same. I'd also check that the Globalize plugin is also being loaded properly Fred

The globalize plugin appears to be working--I can switch between languages on other pages. But I'm probably using an older version so I'll try updating it. But even if I comment out the "translates :text" line in the Profile model, I still get the same error.

As for line endings, I don't see any stray tabs, spaces or nonprintable characters.

Since I originally created the application with an older version of Ruby and Rails, do I need to do something to update the application? Some kind of rake command?

The globalize plugin appears to be working--I can switch between languages on other pages. But I'm probably using an older version so I'll try updating it. But even if I comment out the "translates :text" line in the Profile model, I still get the same error.

As for line endings, I don't see any stray tabs, spaces or nonprintable characters.

By line ending problems I mean some a file using dos line endings (on
a unix like machine) or vice versa.

There is rake rails:update which will update boot.rb and various things.

Fred