If you try to run a Rails 4 or 5 app, in production mode, without creating a secrets.yml file you will get an error.
Missing secret_key_base for 'production' environment, set this value in config/secrets.yml
secret_key_base
config/secrets.yml
A decorator (or presenter) is a class that is responsible for presenting the model logic to the view. The presenter is usually initialized in the controller and usually expects to receive a model object. The presenter…
When you start a new Rails project, performance isn’t an issue. You add migrations nonchalantly as you complete more features. As your app grows and you get more users, database performance starts to become an issue.
Early 2017 I wrote a blog post called ‘Is CanCanCan Dead?’. In it, I concluded that Pundit was a better choice for authorization than CanCanCan. I now believe that conclusion was wrong. I was forced to revise my opinion when reviewing authorization options for a new project. I…
In this post I will be explaining how to create a new rails project, set up with Docker, for local development. A lot has been written about Docker already. In this post I wont be addressing what Docker is or how to deploy it. I will be focusing on using it…
I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail. — Abraham Maslow
Programming is an activity based on the use of tools. The OS, the editor, the programming language & the framework are all…
One of the interesting problems that startups face is deploying software. Startups want to deploy software as quickly and frequently as possible. Startups need to develop for multiple platforms; iOS, Android and Web. Manually testing a backend release on all of…