# Ruby on rails restful path not working (savage beast)

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-restful-path-not-working-savage-beast/133708>\
**Category:** Rails\
**Created:** [April 2, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-restful-path-not-working-savage-beast/133708 "2008-04-02T21:14:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mongdar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@Mongdar](https://www.ruby-forum.com/u/Mongdar)\
**Post date:** [April 2, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-restful-path-not-working-savage-beast/133708/1 "2008-04-02T21:14:33Z")

</div>

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:in`callback’  
/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!

---

<div class="post-metadata">

**Author:** ![Mongdar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@Mongdar](https://www.ruby-forum.com/u/Mongdar)\
**Post date:** [April 2, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-restful-path-not-working-savage-beast/133708/2 "2008-04-02T22:06:58Z")

</div>

nevermind…i screwed up something…
