title: Rails: carrierwave uninitialized constant error
body: <p>I have Rails 3</p>
  
  <p>Carrierwave 0.5.4</p>
  
  <p>//app/uploaders/fasta_uploader.rb</p>
  
  <pre><code>class FastaUploader &lt; CarrierWave::Uploader::Base
    storage :file
    def store_dir
        'public/data/01_fasta'
    end
  end
  </code></pre>
  
  <p>//migration</p>
  
  <pre><code>class AddFileUpToCvits &lt; ActiveRecord::Migration
    def self.up
      add_column :cvits, :fasta, :string
    end
  
    def self.down
      remove_column :cvits, :fasta
    end
  end
  </code></pre>
  
  <p>//app/models/cvit.rb</p>
  
  <pre><code>class Cvit &lt; ActiveRecord::Base
      attr_accessible :fasta
      mount_uploader :fasta, FastaUploader
  end
  </code></pre>
  
  <p>//form</p>
  
  <pre><code>&lt;%= form_for(@cvit, :html =&gt; {:multipart =&gt; true, :onsubmit =&gt; "return ray.ajax()" }) do |f| %&gt;
    ...
    ...
    &lt;%= f.file_field :fasta %&gt;&lt;br&gt;&lt;/br&gt;
    &lt;div class="actions"&gt;
      &lt;%= f.submit "Submit"%&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I get this error: uninitialized constant Cvit::FastaUploader</p>
  
  <p>Any suggestions???</p>