I'm using the login_generator and with this new version of Rails, I
can't even get my app to work. Everything gives a 500 error. In the
console, it says this error:
undefined method `model' for ApplicationController:Class
In the login_generator plugin, you're supposed to put this command in
the application controller:
model :user
When I took it out, it complained about something else...something to
do with secrets. So how can I fix this?
I'm using the login_generator and with this new version of Rails, I
can't even get my app to work. Everything gives a 500 error. In the
console, it says this error:
undefined method `model' for ApplicationController:Class
In the login_generator plugin, you're supposed to put this command in
the application controller:
model :user
model is dead. don't use it.
When I took it out, it complained about something else...something to
do with secrets. So how can I fix this?
That's something else. The default session store is the cookie store in rails 2.0, which requires you to define a secret in your environment.rb.