I have some models in a file named genel. When I try to use one of the
classes in my controller rails raises an error telling classname.rb is
not forund even the file is required already.
class HesaplarController < ApplicationController
@emlak_firmasi = EmlakFirmasi.new
@sehirler = Sehir.find_all
The odd thing is it is working once when I restart webrick, and after
hitting refresh it raises exception again. Why it is insisting to load
classname.rb, isn’t it poÄ±ssible to use custom filenames for models when
you do not use scaffolding etc.