Tag: rails

  • Rails AntiPatterns Review/Summary

    I’ve had the Rails AntiPatterns: Best Practice Ruby on Rails Refactoring (Addison-Wesley Professional Ruby Series) book on my Safari Books Online bookshelf for almost a year now, and finally started reading through it. It was “updated for Rails 3”, and there doesn’t appear to be a newer version, so I was a bit skeptical about…

  • Circular dependency detected while autoloading constant

    I ended up with this error because the class name I was referencing was ClassNameXML but I was trying to call it as ClassNameXml. Not following naming conventions combined with not calling a class by its properly capitalized name will trigger this. I burned an hour figuring this out. I hope you don’t have to.

  • rails (4) generate migration behaviors I forget to use

    When I’m generating a migration, I usually don’t go any deeper than specifying column_name:data_type on the command line, and often I only use the command line to generate the file itself. I don’t know that the other options really save all that much typing, but stopping to think about the other options for a few…