Trying to resolve a undefined method 'with_scope'