More idiomatic rails controller code