posts#index return object instead of array