added directives to rails angular