Unpoly's [up-observe], [up-autosubmit] and [up-validate] as well as their programmatic variants up.observe() and up.autosubmit...

With cd .. you can navigate one directory up from the one you are at now. If you use that a...

Capybara allows you to select DOM elements, e.g. by using field, find_field(...) or field_labeled(...): role_select = field_labeled...

makandra dev
poinz.herokuapp.com

If you are using scrum in a project you might be familiar with planning poker, a playful way to agree...

When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may...

In Ruby you can communicate between processes with sockets. This might be helpful in tests that validate parallel executions or...

On your local system that only hosts non-critical development data and only you have access to, you can store...

Capybara added a deprecation warning in version 3.35.3 (version from 2019) that shows up if your selector is not of...

...new value (be aware that you should use a secure and salted hash) or better call the the_user_to_log_out.reset_remember_token! method that does the things for you.

makandra dev

Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11

Spreewald's patiently repeats the given block again and again until it either passes or times out.

RubyMine offers you to exclude directories from search, meaning faster search results and less "noise" in the list of result...

Within Capybara you most certainly use the #check- and #uncheck-method to (un)check checkboxes. But there's one problem...

makandra dev
litmus.com

...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...

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...

Sometimes, the rails dev server doesn't terminate properly. This can for example happen when the dev server runs in...

makandra dev

If you need to run a program on a remote machine (e.g. to your office PC) with a graphical UI...

makandra dev

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...

web.archive.org

When flagging a spec that will be implemented later as pending, include a failing spec body or RSpec 3 will...

...what "memoize" in earlier rails versions did. There is a gem that reintroduces this behavior, but this is the essential implementation. Remember In the above example, some_expensive_calculation is...

...it will be fixed, I guess it will be for Rails 4 only. The best workaround right now is to lock your version of rack at version...

makandra dev

...remember to nilify it afterwards. Otherwise other examples will see your global changes. A better way is to use the .with_power method to change the current power for the...

ImageMagick can automatically crop surrounding transparent pixels from an image: convert input.png -trim +repage output.png

The cards editor has a feature "Cite other card" to create links to other cards in the same deck as...