# Extensions problem

**URL:** <https://www.ruby-forum.com/t/extensions-problem/92032>\
**Category:** Radiant CMS\
**Created:** [April 15, 2007, 12:02am UTC](https://www.ruby-forum.com/t/extensions-problem/92032 "2007-04-15T00:02:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Method](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bb73d2/32.png) [@Joseph\_Method](https://www.ruby-forum.com/u/Joseph_Method)\
**Post date:** [April 15, 2007, 12:02am UTC](https://www.ruby-forum.com/t/extensions-problem/92032/1 "2007-04-15T00:02:59Z")

</div>

This isn’t the easiest way to start out with extensions, but I am  
trying to integrate Instiki into Radiant. There will obviously be lots  
of issues with this, but I’m experimenting to see how much refactoring  
of the actual Instiki code will be required. So the first steps I’ve  
taken: edited the Instiki migrations so that all redundant tables are  
removed or renamed (pages becomes wiki\_pages, etc.). Then I’ve pointed  
my instiki\_extension.rb to map /admin/instiki/create\_wiki to  
:controller=\> ‘wiki’. I don’t expect it to work when it reaches  
index.rhtml, but it stops when it reaches password\_check, a method  
belonging to the subclassed parent ApplicationController. So in the  
original Instiki code, the Rails magic is able to access the parent  
class. Is this a problem in the extensions implementation?

---

<div class="post-metadata">

**Author:** ![Joseph\_Method](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bb73d2/32.png) [@Joseph\_Method](https://www.ruby-forum.com/u/Joseph_Method)\
**Post date:** [April 15, 2007, 12:39am UTC](https://www.ruby-forum.com/t/extensions-problem/92032/2 "2007-04-15T00:39:04Z")

</div>

Joseph Method wrote:

> original Instiki code, the Rails magic is able to access the parent  
> class. Is this a problem in the extensions implementation?

You can use the no\_login\_required class method to turn authentication  
off on for a specific controller:

class MyController \< ApplicationController  
no\_login\_required  
end

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![Joseph\_Method](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bb73d2/32.png) [@Joseph\_Method](https://www.ruby-forum.com/u/Joseph_Method)\
**Post date:** [April 15, 2007, 7:15am UTC](https://www.ruby-forum.com/t/extensions-problem/92032/3 "2007-04-15T07:15:28Z")

</div>

Thanks, John (good to know), but the problem is that WikiController \<  
ApplicationController, and password\_check is a method of  
ApplicationController, but I get

undefined method `password\_check’ for #WikiController:0xb6928cac

I really just need to investigate the Instiki magic some more. The  
practical question, though, was whether these class relationships  
aren’t preserved for controllers in extensions?
