Sometimes you wonder if there's a way to generate PDF without dealing with wk*topdf, puppeteer and other massive serverside tools - and there's one - jsPDF - which will generate a PDF for you in a moment, all client-side!
Rails migration decimal precision scale explained quasi visually ``` 123.45678912345 <- scale -> <- precision -> ```
Use this syntax to format raw SQL nicely in ruby code. In some editors it also enables SQL syntax highlighting.
How to remove deleted branch names from git suggestions? It's as simple as that: ``` git fetch --prune --all ``` Or (thanks to @mus) you can add this...
Sometimes some task takes a long time and you want to know when it finishes. The system can show you desktop notification with predefined (or added as variable) message.
Hi, You've probably noticed that installation of gem documentation takes more time than installing gem itself. It can be annoying especially when you've alr...
I encountered a problem when dropping a production database. Here's the solution
Pony gem allows to easily send good looking and customizable emails, but it doesn't provide a way to include image in a way that it will be displayed in gma...
How to use helper methods in mailer templates? Instead of this "include YourHelper" use this "add_template_helper YourHelper" in YourMailer
To set maximum backup size run this command in shell...
In some cases, Ruby uses higher precision to represent time than the DB. When we compare a timestamp before and after saving to the DB it might not be equal.
```ruby Model .where("TSRANGE(?, ?, '()') && TSRANGE(starts_at, ends_at, '()')", starts_at, ends_at) .where.not(id: record_id) .exists? ``` Bot...
So, you're trying to setup an Ruby 2.3.X-powered Rails app and it complains about openssl? Using a Mac? You're not the first. I've also been there. Let's get this nasty bug out of your way!
Rubular is an online tool to check regular expressions written in Ruby.
If you have `if`s nested in this way: ``` if a if b 1 else 2 end else 3 end ``` You can flatten and simplify them into this: ...
```javascript document.addEventListener('turbolinks:click', () => console.log('turbolinks:click')) document.addEventListener('turbolinks:before-visit', () ...
When to use let, let! and before in RSpec.
This guy makes his shared examples easier to understand. Overpaid consultants hate him!
Free icon rainbow - big source of free icons. Many sizes and 3 formats: png, jpg, svg
Recommended by https://pawelurbanek.com/profitable-slack-bot-rails