There is the following code:
def index @car_types = car_brand.car_types end def car_brand CarBrand.find(params[:car_brand_id]) rescue ActiveReco
Use expect{} instead of expect().
expect{}
expect()