
Originally Posted by
Mittineague
Hi sammyman, welcome to the forums,
The next chapter deals with the login process in depth. But as for a registration form, from pg. 349
so no, the book does not cover a registration form.
Re NameError, did 255 run OK without errors?
And you did the file modifications correctly and the migration went OK?
I did do 255 without errors. Today, I tried to retrace my steps and I deleted apps/models/user.rb and 003_create_users.rb, and recreated model User. Then I tried to migrate with the following error:
Code:
rake aborted!
An error has occurred, this and all later migrations canceled:
SQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar(255), "password" varchar(255), "name" varchar(255), "email" varchar(255), "created_at" datetime, "updated_at" datetime)
I still have no way to create a user which is hard because I want to test out the application.
Bookmarks