How to hide non permited actions?

Im showing in the view a menu with just the options to certain user, ie:

<% if user = "admin" %> <a href"/action/addcontent">Add content</a> <% end %>

Hope you meant "==" cause the above will always be true as it's assigning "admin" to the user variable... so everyone is going to see that link.