28 miniposts
New Devops

Dokku deployment error: You must use Bundler 2 or greater with this lockfile.

When deploying on a dokku server with herokuish and default buildpacks, If your Ruby on Rails application was bundled with Bundler version 2+, your console might throw the following error You must use Bundler 2 or greater with this lockfile, resulting in deployment failure. This minipost will demonstrate, how to configure a buildpack for a Ruby on Rails project on a dokku server, that can handle Bundler version 2+ and successfully deploy the application.

New Ruby on Rails

How to permit all parameters in Rails controller strong parameters

Sometimes, you are looking to permit all the parameters of your Rails model in controller strong parameters. Instead of specifying them explicitly, one by one, you can permit all of the model attributes. However, this is not a good practice for a production application. As the comment of the rails controller scaffold states as a reminder to: Never trust parameters from the scary internet, only allow the whitelist through.

New Ruby

How to update your rbenv version with git

This minipost will demonstrate how to update rbenv version when you have installed it through git to your system. To be more specific, we will update rbenv from version 1.1.0 to version 1.1.1 via git pull.

New Ruby

How to update your rbenv ruby version

When you install rbenv with git to your machine, it does not update automatically all the new available ruby versions. Therefore, you need to update by git pulling the latest stable release. This minipost will demonstrate step-by-step how to configure your rbenv with the latest stable release of Ruby.