DEV Community

Michael Lee πŸ•
Michael Lee πŸ•

Posted on

1

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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

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

Okay