Rails and Stuff at Abel killed Cain

Ruby on Rails and other Webdevelopment

Just a rather small hint for rails users.

Today i was getting angry about rails, since it told me that a specific method would not exist.. but i knew that i did exists, and both of us were wrong.

How come: i moved a method vom controller to helper, but forgott to remove it from helper_methods.

So Rails claims, that the gived method does not exists. Strange, but true, it complains when you call it in code or template,  silence when you just add it as helper_method.

So be warned, be smarter than i was ;)

Write a Comment