|
context: Ruby on Rails
So, here I was ready to write a new feature to verify I can recreate the bug before fixing it, and I started getting these "method not found -- 'activated' in Site" errors, telling me that the method "activated" doesn't exist in the Site model.
1. Yes it does - I added it into the DB a week ago.
2. It's right there in the code for the model.
3. The page runs just fine, why are the feature tests now failing?
4. And why doesn't RoR give me a stack trace, G**d****!
The 3rd item should have given me a big clue. But without the stack trace, I was still really clueless as to where the "activated" method was even being used. So I ended up diving into Rails' ActiveRecord and stepping through the callbacks into the code that it makes when parsing the Ruby code out of the HTML, and sure enough, it's calling:
def display_name
activated ? name : "#{name} (deactivated)"
end
and sure enough, "activated" doesn't exist, and sure enough, it's not even in the attribute collection for this record.
And then it dawns on me....
...I'm running a feature....
...which means I'm using the test datahase....
...which means I forgot to run 'rake db:test:prepare' to update the test database with my DB change I made last week!
Argh. It's been so long since I've had to fuss with the DB model that I forgot to migrate the changes to the test database as well!
Serious and serious for a non-stack-traceable, cryptic message that while correct, should be a bit more like "The record does not have this field defined!"
Marc
|
|
|
|
|
Hundreds of years ago in the days when dinosaurs roamed the Earth, and I was writing some COBOL, I left off a period at the end of a line. I got 53 different error messages from the compiler, none of which said "Missing period on line 123" or something useful like that. In fact, out of all the error messages, line 123 was never even referenced.
It's nice to see consistency in the industry, nothing changes really.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
I occasionally deal with C++ templates, and compiler errors are legendary verbose and useless.
|
|
|
|
|
I've heard Clang-LLVM were supposed to improve compiler error reporting as part of their compile architecture changes, do you know if their template errors are any less fubar than what VC++ or GCC emit?
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Dan Neely wrote: do you know if their template errors are any less fubar than what VC++ or GCC emit?
Haven't seen them yet, but I may soon as we are expected to introduce clang to the list of supported compilers.
|
|
|
|
|
There is talk that they'll cut one of the customer service representatives from our office because when the president walks by and there is no line it makes the office appear as if it isn't busy. In short, the mandate is to slow down our operations enough to form some lines.
This is a type of customer service wherein the customer serves us, I guess.
The problem is, that the staff is usually doing something anyways. For example, a person may bring in a substantial amount of work that has to be processed. That person may be at the window for 2 minutes but leave behind 15 minutes worth of work.
I know when I enter the DMV if there are no lines and four staff members waiting to help me I'm the happiest person on the planet. I don't think "OMG, what a waste", I think, "It's about freakin' time I got some service."
This is just a face palm idea for me.
|
|
|
|
|
|
Try selling the yahoo on the idea that persistent lines give the impression that the products are so bad that customers must come down for service.
|
|
|
|
|
So whenever the pres is nearby, get the back-office guys to come out and queue.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
|
Sounds like Boeing is having a lot of problems with this model, think I'll wait for the SP before traveling on there plane!
|
|
|
|
|
A month back I was on a brand-new 787.
Flew like a dream.
No blinds in the windows; you just dim the glass. Fantastic.
|
|
|
|
|
Yeah it must be an amazing machine they have orders to build 950 more of them!
|
|
|
|
|
From Article: The failure resulted in six of the seven toilets on the plane not being able to flush.
The airline said that it was looking into the problems.
That made me laugh...
It was broke, so I fixed it.
|
|
|
|
|
I have been given a brief to "Arrange New Year". Our normal MO is to go away and stay in a nice hotel where we don't have to do more than crawl from blow-out meal to detox-unfriendly drinks to the next indulgence; all the while knowing the girls are safe and welcome to be there. Last year was an exception - we went to Paris and partied with friends - but this year I need to think up something winning.
So the requirements are:
- Hotel with CHILD FRIENDLY NEW YEARS PROGRAM. 100% requirement; cannot be ignored.
- UK based. We have to stay here due to being on call.
- Calm ambiance and a bit posh. Examples are Tortworth Court[^] and The Newton[^].
- Plenty of trips to take in the area. We did Snowdonia one year; Scotland was fun.
- Things like a health spa, pool or golf course would not go amiss.
So hive mind, any ideas?
speramus in juniperus
|
|
|
|
|
Nagy Vilmos wrote: We did Snowdonia one year
Edward has his own country now? I thought he was still in Russia.
|
|
|
|
|
Pi* off!
speramus in juniperus
|
|
|
|
|
Not sure I understand the extreme reaction. Thought it was a harmless little joke.
|
|
|
|
|
And there was me thinking you had a GSOH!
speramus in juniperus
|
|
|
|
|
First time I've been accused of having any kind of sense at all.
|
|
|
|
|
Nagy Vilmos wrote: Pi* off! To how many decimal places?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
This year why don't you propose an alcohol free party where everyone challenges each other with self improvement ideas for the upcoming year?
|
|
|
|
|
As I said above. But twice.
speramus in juniperus
|
|
|
|
|
*MehGerbil makes a note to mention Nagy's need for patience should he be asked to attend the self-improvement party*
|
|
|
|