Rails is our web framework. Goals Be able to write a simple Rails application. Understand how Rails talks to the...
Disabling auto-complete in login forms is probably a bad idea, since it encourages weak passwords. If you are still...
CSS support in major e-mail clients is horrible. This will give you an overview what you will not be...
Small web application where you can upload an image (PNG, JPEG, GIF) and generate a base64-encoded version of it...
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.
Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...
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...
When using Savon to connect a SOAP API, you may want to use Savon::SpecHelper to mock requests in your...
Jasmine has a jasmine.clock() helper that you can use to travel through time and trigger setTimeout and setInterval callbacks:
jquery-placeholder is a simple jQuery plugin that enables form placeholders in browsers that do not support them natively, i.e...
Rails comes with a Rake task notes that shows code comments that start with "TODO", "FIXME", or "OPTIMIZE".
To use a form model with devise, you can simply override #resource_class in a controller. A typical use case...
Fontawesome 4 ships with many useful CSS helper classes. Enlarge Icon Add fa-lg (133%), fa-2x, fa-3x, fa...
Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...
When using threads, you must make your code thread-safe. This can be done by either locking (mutexes) all data...
Awesome hack by Tim VanFosson:
RSpec 3 has verifying doubles. This breed of mock objects check that any methods being stubbed are present on an...
What if a complicated component comes along that is naturally modeled by multiple directives? This group of directives, as a...
See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id...
Be careful when using buttons without a type attribute, since browsers will consider them the default submit button of a...
jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...