Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger

Sidekiq 7 adds a new feature called capsules. Use cases: a chrome queue limited to 1 for e.g. PDF processing...

getpostman.com

Talking with APIs makes more fun using Postman. As an alternative you can also use command line tools like cURL...

s keeps saturation unchanged. calc(100 - l) inverts lightness. For example, 0% becomes 100%, and 100% becomes 0%. Example usage .demo { --inverted-color: hsl(from currentColor calc(h...

I recently noticed that better_errors allows you to to open files from within your favorite editor. However it was not so easy to get rubymine:// links to work on...

...Does xdg-open "rubymine:///etc/hosts" open the hosts-file in RubyMine? Step 4: Tell better_errors to use your opener The BETTER_ERRORS_EDITOR_URL environment variable can be used...

Webpack is the future. We're using it in our latest Rails applications. For tests, we want to compile assets...

I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider:

We recently migrated a Rails application from yarn to npm. We decided to go this step instead of upgrading to...

...fills in the query "foo" Also see An auto-mapper for ARIA labels and BEM classes in Cucumber selectors

It is quite easy to migrate from CoffeeScript to ES6. You can use decaffeinate to convert your CoffeeScript source to...

rspec.info

In modern default RSpec configurations, your tests are usually run in random order. This helps to detect "flickering" tests that...

...a? Capybara::Driver::Selenium Now the selenium driver is located by Capybara::Driver::Selenium. A better-looking approach would be: Capybara.current_driver == :selenium page.response_headers['Content-Disposition'] should be page.response.headers...

jsbin.com

If you try to listen to events on elements that are nested inside a , Firefox will stop event propagation once...

Using Capistrano, we usually have some array configurations in the config/deploy.rb file, like set :linked_files, %w[config/database.yml], so in...

Element finding is a central feature of Capybara. Since #find is normally used to get elements from the current page...

apidock.com

Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead. ActiveRecord models have with a method becomes(klass) which you can...

Large Rails projects tend to define multiple custom ways to format Dates or DateTimes. This often leads to duplicated format...

Canonical does not ship Ubuntu 24.04+ Vagrant images due to HashiCorps switch to the Business Source License (BSL). There is...

Disclaimer This card is a collection of guides and things to have in mind when upgrading to a specific version...

To avoid multiple versions of a package, you can manually maintain a resolutions section in your package.json. We recommend you...

When you need to find out in which kind of spec you are during run-time, it's definitely possible...

...GA configurable without changing anything in the application's code base (and much more beyond, see below). Only prefer GTM if the customer requests it, or if he is updating...

...his tracking requirements frequently. The idea behind GTM The "tag" in "Google Tag Manager" has nothing to do with HTML tags, nor with word tags or tag clouds. In the...

adobe.com

Flash movies (.swf files) can talk with Javascript code embedded in the same HTML page. There are two ways to...

Note Using rem only ever makes sense when the root font size is dynamic, i.e. you leave control to the...