try defining "require_widget" in /config/initializers/widget_stuff.rb<br><br>I think that'll work.<br><br><div class="gmail_quote">2008/11/21 Abhishek Parolkar <span dir="ltr"><<a href="mailto:abhishek.parolkar@gmail.com">abhishek.parolkar@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Alright, thanks for the note, I have also been going crazy for the similar situation...<div>
<div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">On Fri, Nov 21, 2008 at 3:48 PM, Matthew Rudy Jacobs <span dir="ltr"><<a href="mailto:matthewrudyjacobs@gmail.com" target="_blank">matthewrudyjacobs@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm pretty sure that, as of Rails 2.1, application.rb gets loaded inside the initializer block.<br>

<br>This caused me quite a few crazy errors when I first moved to 2.1.<br>Particularly as it gets loaded up when Migrations are run,<br>
<br>so I had code in application.rb, which required a specific table to exist,<br>but, when I tried to run the migration to create that table, it broke.<br><br>This also screwed up several other things like monkey patching ActionController::Base.<br>


<br><div class="gmail_quote">2008/11/21 Abhishek Parolkar <span dir="ltr"><<a href="mailto:abhishek.parolkar@gmail.com" target="_blank">abhishek.parolkar@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div>
Hi there,<br><br>A weird situation here, I am doing this kind of thing to refactor a piece of code for better widgetising!...<br><br><a href="http://pastie.org/320383" target="_blank">http://pastie.org/320383</a><br><br>

Any help?<br>
<font color="#888888"><br>' Abhishek Parolkar<br>
<br>
</font><br></div></div>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br>