DEV Community

Michael Lee šŸ•
Michael Lee šŸ•

Posted on

Why does Rails component classes start with the prefix "Action" or "Active"?

I've noticed this pattern and was just curious if anyone knows the story behind the "Action" or "Active" prefix to classes such as Action Mailer, Action Text or Active Record?

Top comments (2)

Collapse
 
mikerogers0 profile image
Mike Rogers āœˆļø

From: github.com/rails/rails/blob/master... & stackoverflow.com/a/32068442

Active - Means it's related to the Model
Action - Means it's related to the Controller

Collapse
 
michael profile image
Michael Lee šŸ•

Ahhh makes sense! Thanks Mike for sharing these links.