When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may...
...a lot more, you can think of it as a "Browserstack for mail clients". Best practices Use tables for layouting. Use these HTML attributes: align="center", width="100%", valign="top...
...In a second tab, open a preview of your designed HTML mail. It's best to take it from Staging, so that assets (images!) will be available to litmus during...
We recently had a problem on a Memcache cluster, where one of the servers showed a significantly worse cache hit...
Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...
Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...
With cd .. you can navigate one directory up from the one you are at now. If you use that a...
RubyMine offers you to exclude directories from search, meaning faster search results and less "noise" in the list of result...
Sometimes, the rails dev server doesn't terminate properly. This can for example happen when the dev server runs in...
Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:
...an error out of stale_session_check! if it cannot find all classes. The best way to go: Don't do this. Strings and numbers should be enough and if...
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...
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...