<div>Many thanks, it works.</div>
<div> </div>
<div>Thank you Trevor<br><br> </div>
<div><span class="gmail_quote">On 3/31/06, <b class="gmail_sendername">Trevor Squires</b> <<a href="mailto:trevor@protocool.com">trevor@protocool.com</a>> 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? 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. So in app/models/<br>toto.rb
you have:<br><br>class Toto<br> include Reloadable<br> # 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>> Hi all,<br>><br>> I've a model class Toto in the model directory.<br>><br>> I don't understand why i have to restarts WebBrick to view changes
<br>> i make in this class<br>><br>> FYI : in the development. rb i desabled class cache with<br>><br>> config.cache_classes = false<br>><br>><br>> Regards<br>><br>><br>> Luciano<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><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