We'll respond shortly.
“We keep getting webrat thread exceptions running our integration specs with the rails integration runner: Thread tried to join itself. The error message varies with different versions of ruby 1.8.6 vs 1.8.7.”
Anyone had this problem or know why?
“How do I skin an iphone mobile site to be the correct width so it’s not 980px wide?”
<meta name="viewport" content="width = device width" />
*”We’re trying to deploy some nginx configuration changes to EngineYard Cloud, what’s the right way to do that?”
We’ve tried building custom chef recipes to solve this problem, but they run after nginx has already restarted, so are a poor solution to this problem. The better solution might be to check in configuration files into the application and symlink them into the nginx configuration directory using a
before_symlink.rb hook in the
*”We’ve got a
has_manyassociation where some of the child records are originally saved in an invalid state. When we later load the parent and ask it if it’s valid, it returns true even with
validates_associated. How can we get the desired validation behavior?”
Turns out that unloaded associations are not validated. Solution: load the association before calling
.valid? on the parent. In general, you should also not create invalid objects, instead using a state variable to put them into a “draft” or “incomplete” state where they are still valid but not complete. Then remove that state and you’ll see the errors required to finish that object.