This error is raised because your old database does not have a configured environment yet, which Rails 5 enforces.
Rails applications and ruby gems should have a README that gives the reader a quick overview of the project. Its...
You should avoid using application models in your migrations. But how else could you create records in a migration?
wrap the text with a span use line-height for the spacing between lines ("margin")
To check if a method has been called in Jasmine, you first need to spy on it: let spy = spyOn...
When you print (or print preview) and elements are cut off (e.g. after 1st page, or "randomly") you should check...
Situation: You want to write a spec for a function inside an Angular service. This function at some point makes...
If you try to listen to events on elements that are nested inside a , Firefox will stop event propagation once...
By default, browsers will not wrap text at syllable boundaries. Text is wrapped at word boundaries only. This card explains...
HTTPie consists of a single http command designed for painless debugging and interaction with HTTP servers, RESTful APIs, and web...
When writing XLSX files, there are gems like rubyXL or axlsx. While they do offer features like formatting or graphs...
PostgreSQL's Common Table Expressions (CTEs) can be used to extract sub-queries from bulky SQL statements into a temporary...
PostgreSQL supports the SQL OVERLAPS operator. You can use it to test if two date ranges overlap: => SELECT ('2001-02...
Summary: Don't add chromedriver-helper to the Gemfile the executables might break your tests in projects where chromedriver-helper...
If your Angular app has some decent complexity, it will not be easy to use UI Router straight away. Here...
Git has two kind of tags: annotated lightweight Annotated tags are stored as full objects in the Git database. They...
In most projects I know, Cucumber test suite speed is not an issue. Of course, running 350 features takes its...
When you're using Sidekiq::Web to monitor the Sidekiq status AND have your session cookie configured to a wildcard...
If your application exports CSV, be advised that Excel and other spreadsheet applications treat certain cells (those starting with =, +, - or...
When attempting to update RubyGems, depending on updates your previously performed, you might run into an error ERROR: While executing...
We're usually running Ubuntu LTS versions. Sometimes newer hardware requires packages from more recent Ubuntu releases that only come...
A common pattern in Ruby is to to require all files in a specific diretory, using something like Dir.glob(Rails.root.join...
Checking if a JavaScript value is of a given type can be very confusing: There are two operators typeof and...
If you already selected an element and want to get its parent, you can call find(:xpath, '..') on it.