View
Posted 3 days ago by Arne Hartherz.

IRB 1.2 (shipped with Ruby 2.7, but works on 2.5+) brings pretty syntax highlighting and multiline cursor navigation. However, pasting...

Posted about 7 years ago by Henning Koch.

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

Posted over 1 year ago by Tobias Kraze.

Was ist Elastic? Suchmaschine, basierend auf Apache Lucene größtenteils Open-Source einige kommerzielle Features ("Elastic Stack", früher "X-Pack") Zugriffsrechte...

Posted 7 days ago by Dominik Schöler. tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...

Posted over 2 years ago by Dominik Schöler.

At makandra, we've built a few gems over the years. Some of these are quite popular: spreewald (> 1M downloads...

Posted over 9 years ago by Henning Koch.

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

Posted 14 days ago by Henning Koch. github.com

Minidusen lets you find text in associated records. Assume the following model where a Contact record may be associated with...

Posted about 4 years ago by Henning Koch.

There is no CSS selector for matching elements that contains a given string ¹. Luckily, Capybara offers the :text option to...

Posted almost 6 years ago by Judith Roth. api.rubyonrails.org

Since Rails 4.1 there is a preview-function to see what an e-mail will look like.

Posted over 9 years ago by Henning Koch.

While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...

Posted 20 days ago by Bruno Sedler.

If you have installed Rubocop in your project, RubyMine can show you Rubocop violations immediately in your editor. You probably...

Posted 20 days ago by Michael Leimstädtner.

You need to install the official plugin, it is not bundled with RubyMine by default. Example: Setup a watcher...

Posted 25 days ago by Jakob Scholz.

curl-to-ruby is a handy tool that converts your curl command to ruby code that uses the Net::HTTP...

Posted almost 10 years ago by Henning Koch.

A check if two date or time ranges A and B overlap needs to cover a lot of cases:

Posted over 7 years ago by Henning Koch.

Rails gives you migrations to change your database schema with simple commands like add_column or update. Unfortunately these commands...

Posted about 1 month ago by Henning Koch. thoughtbot.com

The linked article compares two approaches for writing CSS: A component library (like BEM) Utility classes (like Tailwind)

Posted about 1 month ago by Emanuel De.

In Rubocop you might notice the cop Style/CaseEquality for e.g. this example: def foo(expected, actual) expected === actual end

Posted about 1 month ago by Emanuel De.

Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...

This website uses short-lived cookies to improve usability.
Accept or learn more