On Oct 7, 2006, at 10:25 PM, John S. wrote:
Thanks, I got the form to appear, but where how do I set up the
login/password. When I click the login button it comes up with:
Mysql::Error: Table ‘gd_development.users’ doesn’t exist: SHOW FIELDS
FROM users
I looked through many of the links on
http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated
but
couldn’t find anything about how to set up the users table??
From: http://technoweenie.stikipad.com/plugins/show/User+Authentication
"The way the plugin works is simple. The first thing you do is create
the models and migration:
script/generate authenticated user account
(In older versions of the plugin, you needed to create the migration
separately:
script/generate authenticated_migration
This should no longer be necessary.)
This will not only create your User model, but an Account controller,
some unit and functional1 tests, and some libraries in lib/. Once
thatâ??s done, you can move the include AuthenticatedSystem from app/
controllers/account_controller.rb to app/controllers/application.rb.
This makes all the authentication methods available to all controllers."
so if you’ve run the generator to create your models, there should
also now be migrations in db/migrate to create the required tables.
James.
–
James S. : Web D.
Work : http://jystewart.net
Play : http://james.anthropiccollective.org