Can you make params[:idx].to_i a local var for readability?