added rails controller spec