Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.
sudo apt-get install sqlite3 libsqlite3-dev sudo gem install sqlite3-ruby
If you want to have an English Ubuntu UI, but still see dates, money amounts, paper formats, etc. in German...
This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...
To obtain a list of Passenger processes with their application directories and memory usages, you can say sudo passenger-memory...
This card explains how to upgrade an existing RubyMine installation to a newer version. If you're installing RubyMine for...
If you are connected with a network that forbids e-mail traffic but allows SSH, you can tunnel your e...
Ubuntu natty introduced new "invisible" scrollbars for GTK programs such as gEdit or Nautilus. If you do not like them...
When using gnome-open (i.e. double-clicking a file, telling to browser to open a download, etc.) on Ubuntu you...
This will install a printer called "PDF": sudo apt-get install cups-pdf Files will be put into ~/PDF/ without...
(Rails has a method ActiveRecord::Relation#merge that can merge ActiveRecord scopes. However, its behavior has never been clear, and...
To check your apache2 config files for syntax errors run sudo apache2ctl configtest or shorter sudo apache2ctl -t
When your cucumber features grow massively over time, the test execution can take a lot of time.
If you manipulate the DOM with JavaScript and your page contains nested elements with position: relative, chances are Internet Explorer...
Since May 2011 we are cutting new gems using Bundler, which is less painful than cutting gems using Jeweler. You...
Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...
Before installing chef, make sure curl is installed and sudo finds your gems setup chef-client: follow this guide
When you simply want to get to know Puppet, follow puppetlabs’ Learning Puppet Docs. They give you a handy introduction...
Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...
To set the hostname of your Mac, run the following command in Terminal: sudo scutil --set HostName my-new-hostname.local
When you want to quickly boot from a drive or image in a virtual machine you do not need to...
Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...
ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...
Simply add --dry-run, like this: sudo apt-get install --dry-run something This is great if packages would get...