more Rails way conversions