Controller abstractor for Rails