current_user is what you're looking for.  The difference between 
current_user (used in the view) and acting_user (used in the models) is 
a common source of confusion.

Why are they different?  You'd have to ask Tom, but I can imagine 
scenarios where they might actually be different values.

cheers,
Bryan



hobo_hippy wrote:
> Ok, new situation. Now I'm working inside the main-nav definition. The
> line of interest is:
> 
> <nav-item if="&acting_user.user" with="&Blog">Company Blog</nav-item>
> 
> I figure I can't use "this" because it would refer to the nav-item,
> not the user? I'm don't completely understand the polymorphic rules as
> far as how "this" would inherit some thing. Anyways, I tried all of
> these:
> 
> acting_user == user
> acting_user.user
> acting_user.user?
> &acting_user == user
> &acting_user.user
> &acting_user.user?
> @acting_user == user
> @acting_user.user
> @acting_user.user?
> 
> no to avail. I get either compile errors, nil errors, or no method
> errors. is what I'm trying to do even allowed? I could've sworn I've
> gotten this to work in the past - that is, I want a menu Item only to
> be visible to logged in users.
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to