I can't tell from your post whether you meant to type an instance or local
variable when noting that you "could check the role of the user in the view
with current_user.role," since you mentioned an instance variable earlier.

assigns[:current_user] = ... sets up an instance variable, @current_user,
for use in your view. You should be using @current_user instead of
current_user.

Regards,
Craig
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to