我使用RegularExpressionAttribute来验证属性。该属性需要允许anything but zero length string, null, or (just) spaces。我使用的正则表达式是"^(?!^ *$)^.+$"。我不是regex专家,但我相信表达式是好的(如果我使用Regex.IsMatch直接从代码中验证regex,空字符串返回false -正如预期
现在在rails上取得了很好的进展,但在heroku部署上遇到了障碍。在提交到git,然后执行git push heroku master之后,当我尝试打开/users/sign_up时,我在heroku日志中得到了两次错误 Processing by Devise::RegistrationsController#new as HTML
ActiveRecord::Sta