update 'rails-foundation' example application for Rails 4.1