rubymine--  error alert works, trying conditional html rendering