title: Uninitialized constant Table with Datamapper and Sinatra
body: <p>When I try to access to the data of my table <code>Task</code> in irb I've got the error :</p>
  
  <blockquote>
    <blockquote>
      <p>NameError: Unintialized constant Task</p>
    </blockquote>
  </blockquote>
  
  <p>I'm working with Sinatra and I use Datamapper for the database. </p>
  
  <pre><code>require "sinatra"
  require 'haml'
  require 'data_mapper'
  
  
  get "/" do
    @posts = Post.all
    haml :index
  end
  
  DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{Dir.pwd}/development.db")
  
  class Post
    include DataMapper::Resource
    property :title,           String
    property :content,         String
    property :photo,           String
    property :rating,          Serial
  end
  
  DataMapper.finalize
  </code></pre>
  
  <p>If you have any idea of the problem :)</p>