<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 31-May-06, at 10:21 AM, Charlie Bowman wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> It's not a module, it's just a directory.<BR> <BR></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Charlie,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Rails (1.1 at least) creates a module for each of your subdirectories.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>admin/foo_controller becomes Admin::FooController and Admin.class returns "Module"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Regards,</DIV><DIV>Trevor</DIV><BR><BLOCKQUOTE type="cite"> On Wed, 2006-05-31 at 18:06 +0200, Paul Butcher wrote: <BLOCKQUOTE type="CITE"> <PRE><FONT color="#000000">Stephen Bartholomew wrote:</FONT>
<FONT color="#000000">> As for raising spectre, the super class - AdminController - will in turn</FONT>
<FONT color="#000000">> inherit from the standard ApplicationController which is perfectly</FONT>
<FONT color="#000000">> appropriate :0)</FONT>
<FONT color="#000000">What I was concerned about was that someone might place a controller in </FONT>
<FONT color="#000000">the secure module, but forget to modify the base. Anyone looking at the </FONT>
<FONT color="#000000">source would *assume* that it was secure because it was in the secure </FONT>
<FONT color="#000000">module.</FONT>
<FONT color="#000000">Ah well - it doesn't look like there's a way of achieving what I wanted </FONT>
<FONT color="#000000">(or at least not out of the box).</FONT>
<FONT color="#000000">Thanks for the responses!</FONT>
<FONT color="#000000">paul.butcher->msgCount++</FONT>
</PRE></BLOCKQUOTE> <TABLE cellspacing="0" cellpadding="0" width="100%"> <TBODY><TR><TD> Charlie Bowman <BR> Programmer<BR> Castle Branch Inc. </TD></TR></TBODY></TABLE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Rails mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Rails@lists.rubyonrails.org">Rails@lists.rubyonrails.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.rubyonrails.org/mailman/listinfo/rails">http://lists.rubyonrails.org/mailman/listinfo/rails</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>