Hi all
I have the following controller:
class MemberController < ApplicationController performs_authentication :user_model_class => Member performs_scaffolding :only => [:show, :edit], :model_id => user.id ... end
The first statement, performs_authentication, adds an instance method "user" to the controller, which I want to use in the second statement (see code above). Sadly, I'm getting the following error:
undefined local variable or method `user' for MemberController:Class
It's all in the error message It's looking for class method and
you've added an instance method
Fred