Capybara added a deprecation warning in version 3.35.3 (version from 2019) that shows up if your selector is not of...
I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...
In Ruby you can communicate between processes with sockets. This might be helpful in tests that validate parallel executions or...
The cards editor has a feature "Cite other card" to create links to other cards in the same deck as...
...to name any file @imported by SASS with a leading underscore. SASS files not beginning with an underscore will be rendered on their own, which will fail if they are...
Large projects usually have large test suites that can run for a long time. This can be annoying as running...
Capybara gives you two different methods for executing Javascript: page.evaluate_script("$('input').focus()") page.execute_script("$('input').focus()")
The maximum version of Internet Explorer you can have depends on your version of Windows. E.g. Windows 7 users can...
If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...
We forked trusty memoizer to make two changes: Memoized methods now preserve their arity. Previously all memoized methods had an...
A word of caution There should rarely be a reason for you to split up config/routes.rb. If you need to...
In my opinion using this plus the icon font you get the best of all worlds, with low CPU usage, no JavaScript, and file-sizes in the one...
To delete a specific redis-DB you need to use the FLUSHDB-command in combination with the SELECT-command. For...
Since late 2015, all major browsers (still excluding Firefox) support pointing device media queries. These can be used to distinguish...
accepts_nested_attributes_for :children validates_associated :children end class Child < ApplicationRecord belongs_to :parent, inverse_of: :children end class Child::AsForm < ActiveType::Record[Child] change_association :parent...
...AsForm record with nested Child::AsForm records, the children will not be saved. This behavior also applies to the case where you override the association with has_many :children,...
...and...
Rack has a limit for how many form parameters it will parse. This limit is 65536 by default.
Fix Ensure your step definition cannot generate invalid selectors and instead prints better error messages. Adding field.should be_present might help, Note This error may be caused when...
Keep in mind Swap is not evil by definition. Some bytes per process beeing put to Swap will not have that much of performance influence. If you want the...
...export_path = Dir.mktmpdir('exports') # ... ensure FileUtils.remove_entry(export_path) end Option 3: Using a before/after block before { @export_path = Dir.mktmpdir('exports') } after do if @export_path.present? FileUtils.remove_entry(@export_path)
Look here for informations how you can show the MySQL default character set. At first you need the Amazon RDS...
When using the asset pipeline your assets (images, javascripts, stylesheets, fonts) live in folders inside app: app/assets/fonts app/assets/images...
There is a new card about how to do this with the new AWS Command Line Interface
Inspired by recent "git shortcut" cards I figured it would be nice to have one of these for rebasing a...
Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...