In my rails application, I am trying to check if one line (current_user.email) is equal to another line (@ user.email). How do I do this with an if / else statement? I tried
<% if @current_user.email( =@user.bio ) %> <a href="google.com"> Link </a> <% else %> <% end %>
but I got a syntax error. to help?
source share