I am trying to replicate the “demo/tutorial” at
I have ran the generator and followed the instructions in the
accompanying generator readme_login file.
I have setup up a user database of the form
create_table :users do |t|
t.column :login, :string, :limit => 40
t.column :password, :string, :limit => 40
t.column :email, :string, :limit => 40
t.column :name, :string, :limit => 40
and from there followed the procedures listed at the site noted above
thru the end of Step 2 including creating another table (articles table
referred to in demo) with a user_id :interger column.
After creating a user I attempt to create and save an article
instance/record which fails at the
Can you see anything in the “demo/tutorial” code which is out of place
or have I missed some step required to get the session :user properly
assigned to the @article instance?