Peter Cooper : UK Web 2.0 and Ruby on Rails consultant
Recent Posts
»Jay-Z: From Brooklyn to the Boardroom
»Prank Caller Submits Girl To Sexual Torture By Proxy
>Full archive
Other Posts
« Pizza On Rails: London Ruby on Rails meetupHow Web 2.0 Does Modal Dialogs (or The Lightbox.js Effect Begins To Take Off") »

One Rails annoyance: reserved words


It's not so much a rant as pointing out an annoyance I have with Rails. It doesn't always make it obvious when you're using reserved words. I just had an action called 'process' which was causing me to get all sorts of issues. Turns out you can't use 'process' as an action name because it conflicts with the dispatcher's 'process' method. I can take it with a pinch of salt though, as the problem is mostly caused by Ruby's excellent overloading abilities which I'd rather have than not.

(As an aside: FeedDigest has a model called Digestum and the plural is Digesta. A few people warned me to go with the manual naming route on that one, but I decided it added flavor to the FeedDigest application IMHO. So you can create a Digestum and you'll end up with multiple Digesta. Gives the app that.. latin feel.)

Technorati Tags: , ,




February 24, 2006 | Posted by peter | Comments (0)
Comments

Return to the homepage.
Privacy Policy