I had to work on adding authenticated users to my app, so I had to
back-burner the conditional-link issue. I nevertheless would like to
keep trying to learn how to do this. Maybe CSS is the way to make the
link switch between visible or not depending on context. (Just my
inspiration at the moment.)
Also, you mentioned that I needed have my switch initialized to
false, because nil will result in the same thing, so I just
commented it out in VendorController. Seems to clear up one problem.
Your first attempt just above is already a class variable, as it
starts with @ so I don't follow you here.
I think @xxx defines an instance variables while @@xxx defines a class
variable in Ruby. That's what my Ruby books tell me, as does
It's nice that we got a couple of other respondents. Maybe we'll get
this resolved shortly.