When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...
Say you want to vertically align a div box inside a div container. This is how you do it:
If you get an error like this … can’t find executable rails for rails-3.2.3 (Gem::Exception) … one of several...
To force a check on your next reboot (here for your root partition), simply: touch /forcefsck To manually do this...
An association defined with has_many :through will return the same record multiple times if multiple join models for the...
Geordi, our collection of command line tools, has been extended by another command deploy-to-production. This script encapsulates the...
How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...
When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G – the latter gives...
Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...
This is one possibility to do this. There are other and maybe even better ways to do this.
Install libreadline: sudo apt-get install libreadline-dev Reinstall the ruby and tell rvm where to find readline
Bundler 1.1 has been released. With this version you no longer need to wait for this: Fetching source index…
If you get this: Installing typhoeus (0.3.3) with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem...
Your current ruby must be Ruby Enterprise. gem install passenger passenger-install-apache2-module Edit your httpd.conf according to the...
You are looking for a functionality in RubyMine but don't know or remember its keyboard shortcut or which menu...
If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...
When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...
When using Rails to truncate strings, you may end up with strings that are still too long for their container...
If you want to move a complete commit from one repository to another (and you don't want to add...
Views are normally (for good reason) not rendered in controller specs. If you need it to happen, use:
It might sound trivial, but there is no such thing as a "hover" or "mouseover" state on touch devices. If...
Let's say you have commits that change a file (and looking at the commit details show you the changes...