I was wondering if there was a method in ruby that i could use to hide a form_for if a condition is true, so for example
<% if current_user %>
then i would like to hide my form
I know that i can display:none with css or jquery but if i could do it within the if statement then that would be great
you can type in your view file:
<% unless current_user %><% end %>this way, the form will be rendered only if
current_useris false or nil