If your project uses another version than your default Ruby, RubyMine will give you incorrect inspections, for example.\

makandra dev

Capistrano recently had some API changes that can results in deploys not working when running with old deploy.rb files.

stackoverflow.com

%p #{link_to "label", "url"}! Haml is a great engine for writing shorter, readable HTML. However, there is...

When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...

stackoverflow.com

Using beginning_of_day or end_of_day on Date or DateTime objects in Rails 2.x applications will never...

solnic.eu

Removing duplication from the code is a seemingly easy task. In many cases it is pretty straight-forward – you look...

If you get an error like this ... can’t find executable rails for rails-3.2.3 (Gem::Exception) ... one of several...

makandra dev
ocra.rubyforge.org

OCRA (One-Click Ruby Application) builds Windows executables from Ruby source code. The executable is a self-extracting, self-running...

Sometimes you need a special version of chrome because it has some features you need for testing, like in this...

It's not logical, so don't be too hard on yourself. You need to give it a height and...

You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }

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

By default, Google Analytics tracks the current URL for every request. Sometimes you will want to track another URL instead...

In your ~/.gitconfig: [core] editor=nano

makandra dev
codemirror.net

CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the...

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

bbs.archlinux.org

xterm by default uses black text on white background. To change that to something like "light gray on black", do...

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

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

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

teddevito.com

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

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

I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...