Robby on Rails: Running a Rails development firm is great because...thoughts.sort_by{|t| t[:topic]}.collect tag:www.robbyonrails.com,2005:TypoTypo2006-09-05T22:12:48-04:00Robby Russellurn:uuid:a9872438-c294-4b54-83c2-cfd9f9eb3dc82006-02-22T21:07:00-05:002006-09-05T22:12:48-04:00Running a Rails development firm is great because...<p>you can find yourself saying, “boy, I sure wish that X could do Y.”</p>
<p>15 minutes later… you find that one of your developers has created a solution and then <a href="http://dev.rubyonrails.org/ticket/3936">contributed it as a patch</a> to the <a href="http://rubyonrails.org">Rails project</a>.</p>
<code>
<pre>
./script/console
>> reset!
=> []
</pre>
</code>
<p>Yes… this is just a short-cut to <code>Dispatcher.reset_application!</code> ... but it’s saving me a whole 24 characters each time I need to reset my application while hanging out in <code>script/console</code>.</p>
<p>Thanks <a href="http://www.jvoorhis.com">Jeremy</a>!</p><p>you can find yourself saying, “boy, I sure wish that X could do Y.”</p>
<p>15 minutes later… you find that one of your developers has created a solution and then <a href="http://dev.rubyonrails.org/ticket/3936">contributed it as a patch</a> to the <a href="http://rubyonrails.org">Rails project</a>.</p>
<code>
<pre>
./script/console
>> reset!
=> []
</pre>
</code>
<p>Yes… this is just a short-cut to <code>Dispatcher.reset_application!</code> ... but it’s saving me a whole 24 characters each time I need to reset my application while hanging out in <code>script/console</code>.</p>
<p>Thanks <a href="http://www.jvoorhis.com">Jeremy</a>!</p>
Jeremy Voorhisurn:uuid:42531ee7-367a-4f67-8f3b-b29acba454162006-02-24T00:13:39-05:002006-09-05T22:12:52-04:00Comment on Running a Rails development firm is great because... by Jeremy Voorhis<p>Phil,</p>
<p>You can certainly <em>call</em> this from <code>script/server</code>, but we really just wanted a friendly way to reload the app from <code>script/console</code>. This is just a wrapper to <code>Dispatcher.reset_application!</code> which – as far as I understand – should not affect environment.rb. An olde-fashioned <code>Ctrl-C up return</code> is still required for that. I’m sure you’ve got the reflex by now ;)</p>kimurn:uuid:22fd9f1f-cac9-4cf5-8c37-03f63e031ae22006-02-23T17:59:20-05:002006-09-05T22:12:43-04:00Comment on Running a Rails development firm is great because... by kim<p>great tip, thanks</p>Philurn:uuid:3ab81957-25ac-4bb7-8d8a-df97c227f0462006-02-23T11:29:10-05:002006-09-05T22:12:52-04:00Comment on Running a Rails development firm is great because... by Phil<p>OK, say I’ve got script/server running, and I make a change to enviroment.rb. Does this reset only affect script/console, or will it also change what’s going on in script/server?</p>Jeremy Voorhisurn:uuid:3c808b97-70f9-4ae4-a366-c6f1ea6ec2db2006-02-22T21:41:31-05:002006-09-05T22:12:51-04:00Comment on Running a Rails development firm is great because... by Jeremy Voorhis<p>I prefer the short form, <code>r!</code></p>