Ruby on Rails ‘display’ Reserved Word
Apr 13
Just a quickie to warn you not to use display as a name for any of your Rails actions. I couldn’t for the life of me figure out why I kept getting an exception in one of my controllers. It turns out I had an action called display and spent about 30 minutes trying to debug the problem. When I changed my action and template name to show everything ran as expected. Hopefully this will save you a bit of time or at least give you a heads up. Check out this link for more reserved words.
