Controller responses often include Javascript code that contains values from Ruby variables. E.g. you want to call a Javascript function...

So you probably see the following error trace within your Passenger log file if you got here:

An association defined with has_many :through will return the same record multiple times if multiple join models for the...

stackoverflow.com

This is for you if Passenger gives you the following useless error message. Passenger encountered the following error:\ The application...

You can change which branches will be pushed when saying git push. Our recommendation is to set it to current...

The default behavior of Calc is that when you paste cells from the clipboard, it overwrites whatever cells occupy the...

An = is represented by =3D in the log file. I got confused by the leading 3D which is not part...

Geordi, our collection of command line tools, has been extended by another command deploy-to-production. This script encapsulates the...

You can define what will be printed by checking View -> Preview Page Breaks and then moving around the blue borders...

After installing Bundler 1.1 you will get the following warning when running tests: WARNING: Cucumber-rails required outside of env.rb...

weblog.jamisbuck.org

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

The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...

teddevito.com

This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...

stackoverflow.com

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.

stackoverflow.com

In some older Capybara versions (e.g. 0.3.9), we're getting lots of deprecations warnings: Selenium::WebDriver::Element#select is deprecated...

When you regularly make use of Cucumber's "show me the page" step (or let pages pop up as errors...

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.

makandra dev

When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...

icelab.com.au

We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...

slate.com

Nice article to educate your non-geek girlfriend/boyfriend about the joys of programming.

github.com

Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...