adding create and update actions to gists controller