demo in rails 4