This Ruby on Rails gem will remove the duplicate code in the controllers for Ruby on Rails 4 application.