# Cannot establish site in development mode

**URL:** <https://www.ruby-forum.com/t/cannot-establish-site-in-development-mode/123579>\
**Category:** Ruby-Forum\
**Created:** [December 18, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/cannot-establish-site-in-development-mode/123579 "2007-12-18T22:22:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsonnysys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e274bd/32.png) [@tsonnysys](https://www.ruby-forum.com/u/tsonnysys)\
**Post date:** [December 18, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/cannot-establish-site-in-development-mode/123579/1 "2007-12-18T22:22:57Z")

</div>

Can anyone help? I am trying to get rforum up and running. I cannot run  
it in development mode (eclipse w/radrails plugin) I get the following  
error:

undefined method `acts\_as\_list’ for #Class:0x3831730  
RAILS\_ROOT: C:/Infused/rforum

Application Trace | Framework Trace | Full Trace  
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.1/lib/active\_record/base.rb:1459:in  
`method_missing' app/models/forum.rb:5app/controllers/application.rb:147:in`get\_forums’  
-e:2:in  
`load'-e&line=2">C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.1/lib/active_record/base.rb:1459:in`method\_missing’  
app/models/forum.rb:5app/controllers/application.rb:147:in `get_forums' -e:2:in`load’-e:2

When I load it on my server and run it in production mode I get the  
following error:  
rake aborted!  
no such file to load – ferret  
/home/tsonny/rforum/Rakefile.rb:9

I don’t even know where to begin trying to resolve this issue…Best I  
can figure out is that it has something to do with the site:id  
configuration.

Please help me…  
T.Sonny

---

<div class="post-metadata">

**Author:** ![tsonnysys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e274bd/32.png) [@tsonnysys](https://www.ruby-forum.com/u/tsonnysys)\
**Post date:** [December 20, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/cannot-establish-site-in-development-mode/123579/2 "2007-12-20T21:58:52Z")

</div>

install acts\_as\_list plugin:

cd C:\ruby\rforum  
ruby script/plugin install acts\_as\_list

---

<div class="post-metadata">

**Author:** ![tsonnysys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e274bd/32.png) [@tsonnysys](https://www.ruby-forum.com/u/tsonnysys)\
**Post date:** [December 20, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/cannot-establish-site-in-development-mode/123579/3 "2007-12-20T22:08:24Z")

</div>

Igor Lychakov wrote:

> install acts\_as\_list plugin:
> 
> cd C:\ruby\rforum  
> ruby script/plugin install acts\_as\_list

Thanks that is exactly what I did, I am up and running…

---

<div class="post-metadata">

**Author:** ![tsonnysys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e274bd/32.png) [@tsonnysys](https://www.ruby-forum.com/u/tsonnysys)\
**Post date:** [December 20, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/cannot-establish-site-in-development-mode/123579/4 "2007-12-20T22:47:46Z")

</div>

Have you been able to run rforum site? I am trying to make it work for  
second day and still have a problem. It does not want to render  
/user/register and other pages due to exceptions thrown because of  
missing Site, Forum and other objects.

So I created then using console and debugging code now.  
Also removing rendering of some parts/objects makes it working…  
I guess the database has to be initialized with some objects.

---

<div class="post-metadata">

**Author:** ![tsonnysys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e274bd/32.png) [@tsonnysys](https://www.ruby-forum.com/u/tsonnysys)\
**Post date:** [December 21, 2007, 2:23am UTC](https://www.ruby-forum.com/t/cannot-establish-site-in-development-mode/123579/5 "2007-12-21T02:23:43Z")

</div>

Igor Lychakov wrote:

> Have you been able to run rforum site? I am trying to make it work for  
> second day and still have a problem. It does not want to render  
> /user/register and other pages due to exceptions thrown because of  
> missing Site, Forum and other objects.
> 
> So I created then using console and debugging code now.  
> Also removing rendering of some parts/objects makes it working…  
> I guess the database has to be initialized with some objects.

I think you can work around all of the issues by freezing your rails  
version to 1.2.3; that was the fix for me to get production up and  
running.

run:  
gem install rails -v 1.2.3 and then open your environments file and add  
the following:

RAILS\_GEM\_VERSION = ‘1.2.3’ unless defined? RAILS\_GEM\_VERSION

then run your migrations again and you should be able to deploy from  
there.

I also had a depreciated method in migrations #12 find\_all should be  
find(:all); but this may not be an issue if you freeze your version  
first.

I am up and running and everything works well.

---

<div class="post-metadata">

**Author:** ![tsonnysys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e274bd/32.png) [@tsonnysys](https://www.ruby-forum.com/u/tsonnysys)\
**Post date:** [December 21, 2007, 4:06am UTC](https://www.ruby-forum.com/t/cannot-establish-site-in-development-mode/123579/6 "2007-12-21T04:06:11Z")

</div>

Thanks, I will follow your steps as soon as give up on making it run on  
rails 2.0
