refactors restful_redirect? conditional