title: How do I run scratch file in RubyMine or IDEA in Rails environment?
body: <p>I want to use scratch files as a console replacement for prototyping in my Rails apps. The simplest solution I've found is requiring environment manually like this:</p>
  
  <pre><code>require '/project/path/config/environment.rb'
  </code></pre>
  
  <p>But it does not use Spring and is terribly slow because of that.</p>