In rare cases you might need something like form_for (for using form builder methods on the resulting block element...
When using form_for you can give the form's target URL either as a string or an array:
If you previously used version 2.x of Thunderbird and upgraded to 3.x (for example through an Ubuntu release...
The ancestry gem allows you to easily use tree structures in your Rails application. There is one somewhat unobvious pitfall...
If you need to look at the list of methods that are called upon certain events (like before/after saving etc...
If you did file operations inside a shell or for example using Nautilus, it can take quite a while until...
SSL in Rails 3 is non-obvious.
If you want to see how long your database queries actually take, you need to disable MySQL's query cache...
If you get an error message like that you are missing the Aspell files a specific language:
Even when you're using bundler, it might be significant in which order your gems are listed in your Gemfile...
It can be useful to have a Ruby expression like condition ? positive_case : negative_case in MySQL queries:
Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11
When you need to delete rows from a table, and the delete conditions require a joined table, MySQL needs to...
You can use record.send(:update_without_callbacks) or record.send(:create_without_callbacks) This can be used as a...
You don't need a Rails application to use Sass. Even when you're working on a static site you...
For some reason you want to define a find condition in array form. And in that condition both column name...
Find conditions for scopes can be given either as an array (:conditions => ['state = ?', 'draft']) or a hash (:conditions => { 'state' => 'draft...
There are many different methods that allow mapping an Array to a Hash in Ruby. Array#to_h with a...
When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...
Do that for noble reasons only.
This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...
In modern Rails versions you can also use ActiveRecord's pluck method. User.active.pluck(:id) => [1, 5, 23, 42]
delocalize provides localized date/time and number parsing functionality for Rails.
When you load a record with find options that have SQL fragments in :select or :joins, ActiveRecord will make that...