Forum: Ruby-Forum.com Cannot establish site in development mode

777f61e53403bd9b8b8d1445a672bc2c?d=identicon&s=25 Tiffany Sonny (tsonnysys)
on 2007-12-18 22:22
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
9e342388ef112397d7aac28c0331e288?d=identicon&s=25 Igor Lychakov (eklmn)
on 2007-12-20 21:58
install acts_as_list plugin:

cd C:\ruby\rforum
ruby script/plugin install acts_as_list
777f61e53403bd9b8b8d1445a672bc2c?d=identicon&s=25 Tiffany Sonny (tsonnysys)
on 2007-12-20 22:08
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...
9e342388ef112397d7aac28c0331e288?d=identicon&s=25 Igor Lychakov (eklmn)
on 2007-12-20 22:47
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.
777f61e53403bd9b8b8d1445a672bc2c?d=identicon&s=25 Tiffany Sonny (tsonnysys)
on 2007-12-21 02:23
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.
9e342388ef112397d7aac28c0331e288?d=identicon&s=25 Igor Lychakov (eklmn)
on 2007-12-21 04:06
Thanks, I will follow your steps as soon as give up on making it run on
rails 2.0
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.