# With\_scope not working in 2.0

**URL:** <https://www.ruby-forum.com/t/with-scope-not-working-in-2-0/155881>\
**Category:** Rails\
**Created:** [December 17, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/with-scope-not-working-in-2-0/155881 "2008-12-17T22:04:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [December 17, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/with-scope-not-working-in-2-0/155881/1 "2008-12-17T22:04:31Z")

</div>

Hi,

I just donwload some code. There are some upgrade issue in case off the  
with\_scope method.

This is the code in tje controller:

Video.with\_scope(:find =\> { :conditions =\> CONDITIONS })

How can i make this work in rails 2.0 without with\_scope?

grtz…remco

---

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [December 17, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/with-scope-not-working-in-2-0/155881/2 "2008-12-17T22:42:28Z")

</div>

On 17 Dec 2008, at 21:04, Remco S. wrote:

> How can i make this work in rails 2.0 without with\_scope?

push that code into the model. with\_scope is still around, but it’s  
protected

Fred
