No. Thats true in Rails world as rails there is a convention how you should define classes and file names. Rails uses this convention while loading the classes. A class named UserRegistration should reside inside a file named user_registration.rb. This is a standard convention that rails follows otherwise rails won’t be able to load the class.