added rails example code