Tuesday, February 16, 2010

Fix/Solution for NoMethodError? (undefined method `controller_name' for nil:NilClass)

by Sandip Ransing 0 comments
Tags


This error appears when same action gets called twice. There might be chances to have controller with same name twice inside app as well as plugins

In my case the error appeared while migrating from rails 2.1 to 2.3.
Application was having application.rb and application_controller.rb

Files deleted:
trunk/app/controllers/application.rb

And that solved problem !

blog comments powered by Disqus

About The Author

Sandip is a ruby on rails developer based in pune and also a blogger at funonrails. Opensource contributor and working with Josh software Private Limited. for more info read Follow Sandip on Twitter for updates.

Connect With Me...

Github Projects

@sandipransing Twitter