TL;DR There are three dimensions you can control when scoping routes: path helpers, URL segments, and controller/view module.
Uses FFI and works all relevant operating systems. If you'd try to do it yourself, you'd have to...
Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...
Angular's directives have a transclude option, that allows for rendering an element's original content within the directive's...
A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...
There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...
During debugging you might pepper your code with lines like these: console.log('foo = ' + foo + ', bar = ' + bar) I recommend to use...
Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...
Using Scenic, you can bring the power of SQL views to your Rails application without having to switch your schema...
Note Maintenance mode is enabled on application server as soon as the file /public/system/maintenance.html is present. Note that the servers...
You login to a Linux server with a performance issue: what do you check in the first minute? uptime
Once Rails knows a given string is html_safe, it will never escape it. However, there may be times when...
You know that layouting HTML e-mails is terrible. For more fun, check Litmus' list of top 10 e-mail...
rack-mini-profiler is a powerful Swiss army knife for Rack app performance. Measure SQL queries, memory allocation and CPU...
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available
If you have many connections to your MySQL or MariaDB (as we have) you might want to filter the list...
When you're using feature branches, they will stack up if you don't delete them after the merge to...
Until recently, you could open a new tab via window.open when using execute_script in Selenium tests. It no longer...
The nokogiri gem provides different packages for several platforms. Each platform-specific variant ships pre-built binaries of libxml2, e.g...
You know that Devise offers RSpec test helpers for controller specs. However, in request specs, they will not work.
I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...
This class contains nerdcore things such as disassembling a piece of Ruby into VM calls or enabling tail-call optimization...
Live markdown previewer (with Github flavored syntax) for VIM. Will open a preview in your browser and update automatically on...
Simply add this to your .rspec instead: --require spec_helper If you are on rspec >= 3 and use a rails_helper.rb...