In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...

apidock.com

When you're writing migrations that do more than changing tables (like, modify many records) you may want some output...

Custom matchers are a useful RSpec feature which you can use to DRY up repetitive expectations in your specs. Unfortunately...

Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...

In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...

makandra dev
rubylts.com

RubyLTS is a long term supported fork of Ruby 1.8 that will continue to receive security updates for the forseeable...

Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...

We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

makandra dev

Next time you have to do more than trivial CSS changes on a project, you probably want to have live...

blog.bigbinary.com

Remember why preloading associations "randomly" uses joined tables or multiple queries? If you don't like the cleverness of this...

1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...

weblog.rubyonrails.org

Rails 4.0 is finally ready after a thorough process of betas and release candidates. It's an amazing new version...

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

The Rails secret_token must be unique for each application and any instance of it. If not, someone could exploit...

ActionMailer per default uses http as protocol, which enables SSL-stripping. When a logged-in user follows an http link...

makandra dev
rakeroutes.com

Put the attached files into your home directory and enjoy. .irbrc defines interesting_methods, which is essentially all methods without...

The Ruby on Rails security list archive can be found here: http://groups.google.com/group/rubyonrails-security You can subscribe to this mailing...

Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...

makandra dev
imperavi.com

New WYSIWYG editor that claims to be lighter and prettier than TinyMCE and CKEditor. Has some Rails integration, too.

If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...

When you need to find out in which kind of spec you are during run-time, it's definitely possible...

Sometimes you need a piece of code to do something different for specs than for features. If you don't...

When HTTP clients make an request they can define which response formats they can process. They do it by adding...