Ruby on rails restful path not working (savage beast)

I did some modification to my installment of savage beast 2 but I am
getting the following error whenever I edit and create forum, topic,
or post

NoMethodError (undefined method controller_name' for nil:NilClass): /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/caching.rb:655:incallback’
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/caching.rb:637:in `after’

after some investigation, for some reason the *_path are not returning
restful url.
for example,
/forums/1/topics/1/posts/11/edit?page=1
now becomes
/posts/11/edit?forum_id=1&topic_id=1

and i think this is why my edit and create doesn’t work anymore.

Do you have any idea why this is happening and how to fix it?
Thanks in advance!

nevermind…i screwed up something…