Well, talking about rails, if you do in your controller
staff = Staff.find(1), then you can’t use that in your views, because it
goes out of scope, instead, if you use @staff, it will be available in
your view. I suggest you to read something about scope and variables.
For the second problem, try tu use active = 1 instead of @active = 1.
I’m not sure let me know f it works
Thanks for the answer. I know understand about the scope thing.
I’ve tried using “active = 1” in my model but this still does not
work. Any further idea?