RAILS 4 workings