Hi.
I have install the Login Generator, but i get a error.
NoMethodError
undefined method `model’ for ApplicationController:Class
require_dependency “login_system”
class ApplicationController < ActionController::Base
include LoginSystem
model :user
and in the Models folder there is a user model.
Models/user.rb
Thanks for help
no idea about login generator… but try using restful authentication…
it will work like a charm
Ajit
On Jun 20, 9:43 am, Fredrik F. [email protected]
Back in the old days, you specified a model for a given controller,
but that’s no longer the custom (because controllers don’t map 1:1 to
models, necessarily).
Just remove the line that says:
model :user
The fact that it’s there suggests that you’ll have other issues making
the generator 2.0 friendly, though.
Deirdre