using this tutorial
http://railscasts.com/episodes/57-create-model-through-text-field
need to make it work in my app, was on rails 3.0.7 and it worked fine,
How the others suggested I had a similar problem solved be fix of wrong model name.
I was using a PORO and it wasn't loading, giving me this error. It was because I had changed the class name without changing the file name.
For me, i got the similar problem in the views. My Category model is available inside namespace example
Module Financial class Category end end
When i call simply Category.get_method. It was giving same error. so that i modified into Financial::Category that solved my problem.
ok, just for others if they will get into this stupid things as I did, don't forget to have the category.rb in the app/models..
class Category < ActiveRecord::Base
...
end