change Post# to posts# in root route
Changed class method to scope