Added example for Rails 4