fixes routing error in post controller before_filter