<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On 24/09/2007, at 22:17 , Johan Lavenius wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Locomotive seems to cache my controller and changes in the controller code <SPAN class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">doesnt affect the output without me restarting the app (sometimes i need to restart the app with a new port for it to update). Changes to the view is instant.<BR></SPAN></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>That's what I would expect - the built-in web server is loading the Ruby modules on demand, but only parsing the HTML as it's sending the output to the client. Once the Ruby modules are loaded, they're stuck in memory.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I think you can get away with "require_dependency" instead of "require" in some places, but there is a lot of stuff in Rails that is autoloaded which you have no control over.</DIV><BR><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "> </SPAN><DIV><FONT class="Apple-style-span" face="Helvetica" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;">Another problem is with a view:</SPAN></FONT></DIV></BLOCKQUOTE>...<BR><BLOCKQUOTE type="cite"><DIV><FONT class="Apple-style-span" face="Helvetica" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;"><DIV>Output: (Not interpret as html by the browser) Why?</DIV></SPAN></FONT></DIV></BLOCKQUOTE><BR></DIV>What other HTML is around it? Have you run the complete output through an HTML validator? I wonder if you've somehow got the output into plain text mode instead of sending text/html.<BR><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Alex</DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>