id to integer in post#index