Can I add classes to a rails application manually i.e without using
script generate Model/Controller?
The reason I am asking, I added a class by putting it in the controller
class. I can access the class and its method from command-line (irb),
but when I try to instantiate it in another controller, I get
“uninitialized constant” error.
If I try using script\generate Model ClassName, it adds “<
ActiveRecord::Base”, where as I need to inherit another class.
ClassName < ActiveRecord::Base