This project is archived and is in readonly mode.
Validates Format is NOT Case Sensitive
-
Srinivas Aki
Robert,
I could not reproduce the issue. Can you elaborate a little bit on what you were trying to do.
Thanks
Srini -
Rohit Arondekar
- State changed from new to needs-more-info
- Importance changed from to Low
I could not reproduce this on the 3-0-stable branch.
I did the following:
- Create a new app
- Create a Post scaffold with title field
- Add the validation: validates :title, :format => { :with => /[a-z]+/ }
- Try the following in console
ruby-1.9.2-p0 > p = Post.new :title => 'ABC' => #<Post id: nil, title: "ABC", created_at: nil, updated_at: nil> ruby-1.9.2-p0 > p.save => false ruby-1.9.2-p0 > p.errors => {:title=>["is invalid"]} ruby-1.9.2-p0 > valid_p = Post.new :title => 'abc' => #<Post id: nil, title: "abc", created_at: nil, updated_at: nil> ruby-1.9.2-p0 > valid_p.save => trueAre there any other steps that need to be followed to reproduce this issue?
-
Robert Wünsch
After updating to Rails 3.0 release candidate 2 the problem no longer occurs.
-
Rohit Arondekar
- State changed from needs-more-info to invalid