Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

fbknotts's Profile

GitHub User: fbknotts

Comments by

Avatar

Rookie error!

I discovered the problem.

I had capitalized the first letter of the _pdf.rb files in the app/pdfs directory. Worked OK on the MAC. Completely confused Ubuntu.

Avatar

Great cast. It's just what I needed.

However, I've had a surprise issue. I followed the video closely. My development environment functioned flawlessly (MacBook Pro, ruby 1.9.2-p290, rails 3.1.3). When loaded into my production server (Intel motherboard, Ubuntu 11.10, ruby 1.9.2-p290, rails 3.1.3) the call to the pdf class from my controller fails with an "uninitialized constant PatientsController::PatientsPdf" It's as though the internal rails "path" fails to find the file in the /app/pdfs directory. I could load the pdf class definition into my controller, but that's going to be a little messy. Any suggestions?