...One might argue that could also omit position: relative on .section, and place the before/after helpers using left: 0 or right: 0. However, you'd then need to know the...
...disappear again when moving the mouse pointer to the left or right. Hovering the before/after elements actually means hovering the element itself...
Don't you just hate to write Cucumber path helpers to be able to say this?
If a model inherits from others or uses many concerns / traits, it might be hard to see in the code...
There are several gems that make it easy to read and process xlsx files. Parsing the entire file at once...
The non-breaking space is prepended to the second element because that one becomes floating. Since that would discard any whitespace between the two elements, we are adding the...
In Ruby on Rails, all objects have a useful blank? method. It returns true for nil but also for empty...
The following example is from the Cucumber wiki: Given a blog post named "Random" with Markdown body """ Some Title, Eh...
...and compare it to the decrypted hash to see if there is a match. Benefits of this are If an attacker steals your database, they can't decrypt any of...
...easier to see if you have anomalous calls to KMS. There is a huge benefit here in that it is impossible to do bulk decryption without a giant audit trail...
When you need to store structured data (like Ruby hashes) in a single database column with ActiveRecord, a simple way...
Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...
UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
...no guarantee the form submission has completed in Selenium before Ruby updates the record behind the scenes. In this case you might lose the update because the sign in process...
When you render a nested form for a Movie which has_many :actors, you want to render the right number...
The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...
matically. Automatic loading is disabled when this option is specified, and all loading becomes explicit. Files under directories named "support" are always loaded first. [...] $ cucumber -r features
Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...
Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...
The ExceptionNotification has plugins that talk to external APIs rather then just sends emails, like microsoft teams or slack. You...
...to enter localhost.ssl as Common Name when asked. This is to make your browser believe the certificate is owned by the localhost domain. Add localhost.ssl to your hosts file
When your application is running on a multi-server setup, application logs are stored per server (unless you choose a...
When you need to patch an existing gem, one way is to "vendor" the gem by copying it into the...
...has_many :users, through: :invitations, include: :user, order: 'users.name' end class Invitation < ActiveRecord::Base belongs_to :party belongs_to :user after_create :send_invite def send_invite other_user_names...
...application and is likely to happen on Rails 4 applications as well. Your best bet is to stay away from using them. Most times, it's good enough to actually...
If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...