editing using rails