私はシナトラで遊んでいて、オンラインで見つけた簡単なチュートリアルに従っています ( http://carlosgabaldon.com/articles/singing-with-sinatra/ )。
でも入ろうとするたびにDataMapper::Database.setup({...
わかりuninitialized constant DataMapper::Database (NameError)
ました..理由はありますか?
私はシナトラで遊んでいて、オンラインで見つけた簡単なチュートリアルに従っています ( http://carlosgabaldon.com/articles/singing-with-sinatra/ )。
でも入ろうとするたびにDataMapper::Database.setup({...
わかりuninitialized constant DataMapper::Database (NameError)
ました..理由はありますか?
Like others said, you should definitely use some newer/better tutorials. The Getting Started page on DataMapper's website is a good starting point, along with the rest of their docs.
To answer your question, this should connect to your database:
DataMapper.setup(:default, 'sqlite://db/my_way_development')