<div>Many thanks, it works.</div>
<div>&nbsp;</div>
<div>Thank you Trevor<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 3/31/06, <b class="gmail_sendername">Trevor Squires</b> &lt;<a href="mailto:trevor@protocool.com">trevor@protocool.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>does your model inherit from ActiveRecord::Base?&nbsp;&nbsp;If it doesn't then<br>it won't get reloaded automatically and you'll have to do a little
<br>extra work:<br><br>In rails 1.0 you can put this into your app/controllers/<br>application.rb file:<br><br>require_dependency 'toto'<br><br>And in rails 1.1 you can use the Reloadable mixin.&nbsp;&nbsp;So in app/models/<br>toto.rb
 you have:<br><br>class Toto<br>&nbsp;&nbsp;include Reloadable<br>&nbsp;&nbsp;# the rest of your stuff here<br>end<br><br>HTH,<br>Trevor<br>--<br>Trevor Squires<br><a href="http://somethinglearned.com">http://somethinglearned.com</a><br><br>
<br><br>On 30-Mar-06, at 9:01 PM, Luciano Broussal wrote:<br><br>&gt; Hi all,<br>&gt;<br>&gt; I've a model class Toto in the model directory.<br>&gt;<br>&gt; I don't understand why i have to restarts WebBrick to view changes
<br>&gt; i&nbsp;&nbsp;make in this class<br>&gt;<br>&gt; FYI : in the development. rb i desabled class cache&nbsp;&nbsp;with<br>&gt;<br>&gt; config.cache_classes&nbsp;&nbsp;&nbsp;&nbsp; = false<br>&gt;<br>&gt;<br>&gt; Regards<br>&gt;<br>&gt;<br>&gt; Luciano<br>
&gt; _______________________________________________<br>&gt; Rails mailing list<br>&gt; <a href="mailto:Rails@lists.rubyonrails.org">Rails@lists.rubyonrails.org</a><br>&gt; <a href="http://lists.rubyonrails.org/mailman/listinfo/rails">
http://lists.rubyonrails.org/mailman/listinfo/rails</a><br><br>_______________________________________________<br>Rails mailing list<br><a href="mailto:Rails@lists.rubyonrails.org">Rails@lists.rubyonrails.org</a><br><a href="http://lists.rubyonrails.org/mailman/listinfo/rails">
http://lists.rubyonrails.org/mailman/listinfo/rails</a><br></blockquote></div><br><br clear="all"><br>-- <br>----------------------------------<br>Luciano Broussal<br><br>email: <a href="mailto:luciano.broussal@gmail.com">
luciano.broussal@gmail.com</a><br>Tél: 06 61 84 51 00<br>Fax: 04 92 72 65 91