DEV Community

Michel Sánchez Montells
Michel Sánchez Montells

Posted on • Edited on

2

Rails Models Files Organization

Just a place where to come back in the feature when I forget how to organize my Rails Models.

class MyModel < ActiveRecord::Base
  # extends 
  # includes 
  # relationships 
  # validations 
  # callbacks 
  # scopes 
  # delegates
  # additional config (i.e. accepts_nested_attribute_for etc...) 

  # class methods 
  # public instance methods 
  # protected instance methods 
  # private instance methods 
end
Enter fullscreen mode Exit fullscreen mode

It is worth mentioning or thanks to this project rails_standards
The place where I found this guide.

Top comments (0)

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay