This minipost will guide you through all the required steps in order to successfully perform an advanced installation of Sentry on a Ruby on Rails application for production environment monitoring.
Ruby on Rails11 miniposts
This minipost will guide you through all the required steps needed in order to successfully deploy a sidekiq service on a Ruby on Rails application. We will focus on herokuish servers, try to cover both Heroku and Dokku implementations, that are pretty much the same.
When your Ruby on Rails project does not have any form of user authentication, not using devise, or any custom authentication and you need to secure your SIdekiq UI, you can add Sidekiq Basic HTTP Authentication from the application’s routes to the mounted Sidekiq engine.
Dokku provides limited support to the
app.json manifest file, that describes the web application in a heroku environment. This minipost, with demonstrate the required setup in order to run the Rails migrations upon deployment using
app.json file on a dokku server.
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.
This minipost will guide you on how to install a new version of bundler, how to bundle a rails application with a specific bundler version and how to update bundler on a project that is already bundled with another version.
This minipost will explain in detail the difference between the two finders
find_by(id: id). Both do the exact same thing when the record exists in the database. However, they handle differently the return values, when the record is not found in the database.
There is a certain stage in your application development process, where you need to prevent visitors from accessing the staging or the beta version of the app. To prevent unwanted access, a very basic HTTP authentication system should be added. Such a thing in Rails is extremely easy to add. This post is focused on authenticating access to all application parts.
Most of the times you want to develop using the edge version of rails. However, many times you need to generate an application with a specific version of rails. This minipost will guide you through on how to do that.
Most of the times, you are developing more than one rails project at the same time and you want to avoid switching directories and start/stopping your development server. Running multiple rails server instances on your local machine is a daily essential. This minipost will demonstrate how to run multiple server instances using the
When installing a new gem using the
gem install command, the documentation generation takes time and space on your development machine. This minipost, will demonstrate the common ways to avoid documentation installation when using
gem install command. You could eliminate
gem documentation, when you install new gems by adding flags to
gem install command or add couple of settings to