title: Rails 3.2 Carrierwave precompile error
body: <p>I got a <code>class AvatarUploader &lt; Carrierwave::Uploader::Base</code> which store <code>User</code> avatars in <code>public/uploads</code> dir:</p>
  
  
  
  <pre class="lang-rails prettyprint-override"><code>  def store_dir
      "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
    end
  
    version :main do
       process :resize_to_limit =&gt; [128, 128]
    end
  </code></pre>
  
  <p>And I want to start application in <code>production</code> mode with assets precompilation enabled. Everything but avatars work fine. When I visit any <code>User</code> profile I get:</p>
  
  <pre class="lang-rails prettyprint-override"><code>Started GET "/users/1" for 127.0.0.1 at 2012-05-03 17:45:24 +0300
  Processing by Users::UsersController#show as HTML
    Parameters: {"id"=&gt;"1"}
    Rendered users/users/show.html.erb within layouts/application (2.5ms)
  Completed 500 Internal Server Error in 16ms
  
  ActionView::Template::Error ( isn't precompiled):
      87:                     &lt;%= image_tag @user.avatar_url(:main).to_s %&gt;
    app/views/users/users/show.html.erb:87:in `_app_views_users_users_show_html_erb___538221278131396366_28399560'
  </code></pre>
  
  <p>Maybe there is a way to turn off precompilation for avatars(because they could be re-uploaded when app is running on production). Please provide any suggestions how to fix this issue. Thanks.</p>