ebullient·works

[ About · Archive ]

Upgrading old rails apps...

I have to say that updating RoR for old apps always lands me in some wonky funny business: missing config variables, moved whatsits and thingummies. grr. The issues aren't easy to search for, either.

This time:

  • Bad routing with Apache Alias: that started acting up, too. I have an app at "/app" (for example), and was mapping "/app/shortname" to one of the controllers. This worked before, post upgrade of rails, it would actually look for "/app/shortname", when only 'shortname' was in the rails routes.rb (which means the app in general didn't behave, as you clicked along, the missing prefix kept messing things up). The fix came from the item below.. upgrading passenger resolved it.
  • "Unknown method rewind"
    Again, no effing clue why/where... just wanted to fix it so it would go away (I know, lazy, right?): Amen that someone already figured this one out... Passenger needed to be updated.
  • So, what's next? convention change... now maps to apps/view/layouts/_whatever.erb instead of apps/view/layouts/whatever.rhtml. Renaming fun.

Useful:

posted
tags: