example/app.rb in restfulness-0.1.0 vs example/app.rb in restfulness-0.2.0
- old
+ new
@@ -13,10 +13,10 @@
project
end
def post
$projects << Project.new(request.params)
end
- def put
+ def patch
project.update(request.params)
end
def delete
$projects.delete(project)
end