copied a example and it looks fine on rails server, now will edit