I want to include a link in my SiteMaster (using Html.ActionLink) UNLESS the view that I am linking to is the current view. For example, there is no sense displaying a "Register" link when the user is already seeing the "Register" view.
In Ruby on Rails, I use the "link_
to_
unless_
current" method to do this.
How do I duplicate this behavior in ASP.NET MVC? The best I can come up with is to set a boolean in my controller to indicate that the link should be hidden (since it is current). This seems really awkward compared to the Rails approach, so I think I must be missing something.