On Wed, Jul 28, 2010 at 02:17, nathanvda <[email protected]> wrote:
> But luckily, as is often the case, the problem/bug was a stupid > mistake. > > My class is called EnvelopesController, and what did i want to do with > my envelopes? send them! > Alas, defining a such-named method will cause terrible havoc! :D That's the sort of thing that seems to strike Rails devs all the time. Happened to me when I named something "options" IIRC. It seems similar to someone's dictum on gun handling: there are shooters who have had accidental discharges, and shooters who *will*. :-) Perhaps there ought to be a gem/plugin/whatever that will warn you if it detects reuse of a word that Rails uses.... -Dave -- Specialization is for insects. -RAH | Have Pun, Will Babble! -me Programming Blog: http://codosaur.us | Work: http://davearonson.com Leadership Blog: http://dare2xl.com | Play: http://davearonson.net -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

