fixed errors: rack flash require in wrong place; viewers resource was singular!