Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

stackoverflow.com

You're better off using debugger-ruby_core_source: gem install debugger-ruby_core_source If you can't do...

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

Geordi 0.16+ supports running selenium tests with project-specific firefox versions. Just update the gem. It will still default to...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

The default configuration of Rails disables CSRF protection in tests. If you accidentally forget to send the CSRF token for...

stackoverflow.com

If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...

When writing Rails migrations to convert a string column to an integer you'd usually say: change_column :table_name...

Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...

Do not use .rvmrc files to specify Ruby version and gemset configuration any longer, it's deprecated and not considered...

We sometimes send calender data or tasks using iCalendar (ICS) via eMail as specified in RFC 5545. Recently, a customer...

In contrast to RSpec's included allow_value matcher, the attached matcher will also work on associations, which makes it...

When two elements with display: inline-block are sitting next to each other, whitespace between becomes a space character.

In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...

stackoverflow.com

I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...

When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...

Custom matchers are a useful RSpec feature which you can use to DRY up repetitive expectations in your specs. Unfortunately...

Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...

developers.google.com

The Google Chrome DevTools allow you to inspect, debug, and analyze the on-device experience with the full suite of...

github.com

Extends the Chrome WebInspector so you can debug AngularJS applications and hunt down performance issues. It's really, really good...

Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...

makandracards.com

So you're hunting down a regression (or just a bug) and want to use git bisect to find out...

jimneath.org

The linked page lists and explains global Ruby "dollar" variables, such as: $: (load path) $* (ARGV) $? (Last exit status) $$ (PID)

Connect to your memcached host. (AWS elasticache is memcached) telnet foohost23.cs2631.0001.euw1.cache.amazonaws.com 11211 Once you're connected, find out which 'slabs...