should ruby class name match file name

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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.