I have this in my view:
<% if user_signed_in? && current_user.has_role? :admin or :editor %>
This returns this error:
syntax error, unexpected tSYMBEG, expecting keyword_then or ';' or '\n'
I also tried this:
<% if user_signed_in? and current_user.has_role? :admin or :editor %>
And while I don't get the above error, it doesn't work at all...i.e. a non-signed-in-user
can access the content within that if
block.