I am doing the following tutorial, to learn how to use dhtml in rails.
http://www.dhtmlx.com/blog/?p=426
I reach the point where I create the migration however when I do the rake db:migrate I recieve the following error:
An error has occurred, this and all later migrations canceled:
uninitialized constant CreateUsers::User
Don’t seem to understand how I can possibly be recieving this error especially by simply following a tutorial. “/
Make sure you generate the
Usermodel before running the migration. (ruby script/generate model userin the tutorial, butrails g model Userfor Rails 3)EDIT: As Jeremy pointed out, generating the model will create a migration file for you. The tutorial shows things in a somewhat backwards order.