Scrub functionality in app.rb