I'm trying to display a delete button only if the current user is the "host" but the button is hidden even if the user id for the host matches the user id for the guest
<%= link_to "X" , "/songs?name=#{s.name}&party_profile_id=#{s.party_profile_id}&commit=X", :remote => true, :class => "btn btn-inverse btn-small refreshbutton", :style => "display:none" unless @current_user.id == @party_profile.host %>
Am I using the wrong syntax? Is there a better way to conditionally display items?
@party_profile.hostan integer, because@current_user.idalmost certainly is, and I wonder if they can ever be the same thing.