fix rails recipe, use type instead of adapter