Did you upload your data in addition to your app?
The error suggests that you are calling nil.downcase
With any debugging the real question is "What assumption have you made that hasn't been fulfilled?"
In this case, i will assume that you meant to call downcase on a string. However, your variable is not a string, it's nil.
Common reasons for this: no records found in an ActiveRecord find() statement, empty value in your DB row, et cetera.
Techniques for tracking it down:
use script/console on the server, then go through and approximate what should be happening during that request at the command line, checking your variable's state as you go through.
Alternately, you can put in logger.info() calls which will log in production if it is only happening in prod.
Also, check out breakpointer.
Personally, I prefer the console.
On Aug 22, 2006, at 11:00 AM, Brian Donahue wrote:
OK. I will try to make a long story short. I took on a freebie gig for one of my favorite musicians, Eric Bachmann (Crooked Fingers, Archers of Loaf, and now a solo record). I wanted to do it in Rails for fun, and because of quick and simple content management I could throw together with little more than scaffolding. Got it all working locally on my machines. Recommended Site5 to them for hosting, got it loaded up there. Followed the instructions for deployment on site5's forums:
I continue to get
Bad Request Your browser sent a request that this server could not understand.
The production log tells me
undefined method 'downcase
' for nil:NilClass
I can provide the whole stack trace if anyone's interested. I had been getting some support from Site5, but they seem to have stopped responding, even to a newly entered ticket with "urgent" status (submitted last night). They seemed to think it had to do with different versions of rails, so I froze my gems and uploaded them and am still having issues. If I run webrick via SSH I can connect on port 3000, so this seems to be an apache/fastcgi issue.
Does anyone have any advice?
talk mailing list