Can I create model named Model?
Can I create model named Model like below?
Will it cause some problems later?
# app/models/model.rb class Model < ActiveRecord::Base has_many :products end
Yes, you can create a model called Model...
...and yes, it could easily cause some problems later. ActiveModel contains the class "Model" already, so if you wish to ever utilize ActiveModel you set yourself up for a world of pain (or at least conflicts).