It seems, by default, the model_name.rb file is a must for a model.
I just created a ‘bars’ table in database, and I can’t access Bar model
until I create an app/models/bar.rb file with:
class Bar < ActiveRecord::Base
even moving these two line codes to app/models/foo.rb raise error.
I want a Bar model, without a bar.rb file. I want to do this because I
want to have a SUPER model class to GENERATE models.
While tables are ready, I want to use methods like:
#define model_name as a new model class
Any idea how to do this?