added rails magic