Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger
Free Bootstrap theme resembling Material Design. Bootswatch offers Sass and Less files, so the theme can easily be integrated into...
The migration DSL now supports adding and removing foreign keys. They are dumped to schema.rb as well. At this time...
When running capybara with Chrome you might start seeing frequent "no alert open" errors when trying to interact with browser...
Your after_commit callbacks will not know about changes, as Rails discards them when committing. The linked article shows a...
Very detailed guide to caching Ruby on Rails. Goes well with the official Rails guide on caching.
Large projects usually have large test suites that can run for a long time. This can be annoying as running...
CSS (+ some Javascript) framework, implementing Google's material design for static web pages. Can be used for plain websites without...
When using ORDER BY "column" in PostgreSQL, NULL values will come last. When using ORDER BY "column" DESC, NULLs will...
SmartUnderline is an open-source JavaScript library which uses clever tricks to draw underlines in a more beautiful and readable...
Today I ran into this: Invalid gemspec in [/usr/local/rvm/gems/ruby-1.9.3-p194/specifications/ZenTest-4.9.3.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]. You need a newer Rubygems version. Try...
Rails comes with grouped_collection_select that appears to be useful, but isn't. As an alternative, consider the flat...
Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead.
Starting from 4.1, Rails automatically detects the inverse of an association, based on heuristics. Unfortunately, it does not seem to...
There is no such thing as a "default order" of rows in database tables. For instance, when you paginate a...
ActiveModel supplies an errors object that behaves similar to a Hash. It can be used to add errors to a...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
Please don't use the horrible datetime_select helper. It has a terrible UI. Always prefer to use a visual...
You might wonder about this request in your test.log: Started GET "/__identify__" for 127.0.0.1 at 2015-04-29 18:00...
Re-creating a complex ActiveRecord scenario quickly without setting up a full-blown Rails app can come in handy e.g...
When you want to UPDATE a table with information from an associated table, you can JOIN the associated table into...
Several Rails migration methods accept index: true as an option to create an index. In some cases (like #add_column...
When using send_file (for example for attachments of any kind), make sure your application knows the correct mime types...
You can freeze any Ruby object to prevent further modification. If you freeze an ActiveRecord and try to set an...