Now, everything about the creation of a Post instance is in one dedicated class method of the model. After all, it’s totally the responsibility of the model. This is commonly called a factory method. There is a very common and known method that already does that: the constructor, i.e....

Related:

. I'm a software engineer, Ruby and C++ developer, Linux sysadmin, with a PhD in Artificial Intelligence . After a start in teaching and research, I've felt the urge to build real solution for real people. But identified as an academic , I've decided to prove I was not a Mike and star...