The method cookies is defined in the ActionController and should never be overwritten. Bad example class StaticPagesController < ApplicationController
When you need to store structured data (like Ruby hashes) in a single database column with ActiveRecord, a simple way...
Authentication is a special part of web applications. On the one hand, it usually is a crucial security mechanism restrict...
In medium-sized to large Rails applications, asset compilation can take several minutes. In order to speed up deployment, asset...
TL;DR I18n keys ending with _html are automatically marked as HTML-safe when translating with t('.your_key_html...
When your application is running on a multi-server setup, application logs are stored per server (unless you choose a...
When your JavaScript bundle is so massive that you cannot load it all up front, I would recommend to load...
If your rails application is unable to send mails, it might be useful to debug your settings using the rails...
Webpacker uses Babel and Webpack to transpile modern JavaScript down to EcmaScript 5. Depending on what browser a project needs...
Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...
This might be a known issue with Rubygems 2.5.1. This will help: gem update --system
When you need test images, instead of using services like lorempixel or placehold.it you may generate test images yourself.
Boot partitions from installations prior to the 16.04 era are terribly small. When you install updates and encounter errors due...
MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of...
Rails offers a way to prepend (or append) view paths for the current request. This way, you can make the...
The httpclient gem comes with a custom SSL cert store. While an customizable, application-level cert store is great when...
Running rails server will start a local server that you can access via http://localhost:3000. When you are working...
Your default postgres user is named like your linux user. That default user has limited access privileges, which can cause...
Trying to open a vnc window with geordi geordi vnc ended up with this error: > VNC viewer could not be...
mysql> SELECT @@global.version; +------------------+ | @@global.version | +------------------+ | 5.6.30 | +------------------+ 1 row in set (0,00 sec) MySQL 5.6 Reference Manual says "BLOB and TEXT...
Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...
When flagging a spec that will be implemented later as pending, include a failing spec body or RSpec 3 will...
Understanding your type of cronjob Some cronjobs must only run on a single server. E.g. when you run nightly batch...
This is a small example on how you can check if your Postgres index can be used by a specific...