开发者

rails validation messages

开发者 https://www.devze.com 2023-01-30 05:24 出处:网络
My Rails app began returning funky validation error messages of this form upon create/save of a model.

My Rails app began returning funky validation error messages of this form upon create/save of a model.

{{count}} errors prohibited this {{model}} from being saved There were prob开发者_运维问答lems with the following fields: {{attribute}} {{message}} {{attribute}} {{message}} {{attribute}} {{message}} {{attribute}} {{message}}

Has anyone else experienced anything like this?

Thanks


You probably upgraded Ruby to a version that does not work well with your version of Rails. I think that if you use Ruby 1.9 you have to at least use Rails 2.3.9 if I'm not mistaken.

Here is a changelog for Rails 2.3.9: ruby-on-rails-2-3-9-released

0

精彩评论

暂无评论...
验证码 换一张
取 消