refactor
edit works
Merge pull request #8 from enpere/edit-resource

Edit resource