Sample app in rails 4