Update app.rb

get put delete,id should convert to int.