You should be able to replace lines like this:
@oil = Oil.find(:all, :conditions => ['vehicleID = ?', id])
With lines like this:
@truck = Truck.find(@params["id"])
@oil = @truck.oils
The has_many and belongs_to constructs should make the two pieces of code equivalent in function.