Script for Rails