tl;dr You can use attribute? as shorthanded version of attribute.present?, except for numeric attributes and associations. Technical Details
If you want to make your Rails application be capable of sending SMTP emails, check out the action mailer configuration...
Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...
If you want to know your public key's fingerprint, do this: ssh-keygen -lf ~/.ssh/my.key.pub This may be necessary...
FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...
This should be fixed in the latest LTS-branches of our mysql2 fork, 0.2.x-lts and 0.3.x-lts...
All browsers + IE9 know the CSS :empty selector. It lets you hide an element when it has no content, i.e...
...ES5. This means that examples for transpiled results or the "Try CoffeeScript" web console behave differently, and lookup up stuff when working on older projects may be somewhat hard.
When writing Rails migrations to convert a string column to an integer you'd usually say: change_column :table_name...
When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...
...you're using Rails 4 (which brings String#indent in ActiveSupport), you'll be best of defining it yourself. This card has it for you. Gems that define String#indent...
Starting with Ruby 2.0 you can define methods with keyword arguments. In 2.1+ required keyword arguments can be defined by...
We often use VCR to stub external APIs. Unfortunately VCR can have problems matching requests to recorded cassettes, and these...
MariaDB (and MySQL) is released in different versions with different behaviors. For backwards compatibility this can be managed with the sql_mode option. Following you can find behavior differences which...
Many of our developers love to use the "awesome" window manager on Linux. However, RubyMine dialogs occasionally defocus while typing...
...no longer executed. Both are caused by the return inside of the block. This behavior is by design, just so that you can break out of a block -- and you...
...buffer { return block.call(*args) } end end This can come bite you with extremely unexpected behavior of your application, as this will mean a slightly different result of your capture:
When you have files in your .gitignore they won't be considered for changes, but still you might want to...
...your code a good manner, it can affect readability in a terrible way. The better option is to bundle your local font into an npm package and to add a...
You set a flash message and it shows up as it should. However, it is displayed again the next time...
...its internal state. It is usually sufficient to use the then() function. Where promiseState() becomes useful is when writing unit tests for a function that returns a promise.
Add deprecation warnings and their solution or link to available solutions. Global access to Rake DSL methods is deprecated. Please...
On application servers, gems are usually bundled into the project directory, at a location shared across deployments. This is usually...
Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...
...I want to point out that it has clear strengths, too. Pro Simple and beautiful interface. Outstandingly organized source code. Have never seen a JS library that was this structured...
...name ( by ) until it starts replacing into tags. Seriously. This is just horribly broken beyond repairs, so we do it ourselves. While the documentation states that allowedTags is processed upon...