Sorry for blaming I18n or Rails, it was a very strange error caused by
another gem.

http://github.com/joekhoobyar/composite_primary_keys/blob/master/lib/composite_primary_keys/validations/uniqueness.rb
( record.errors.add(attribute, :taken, :value => value) solves that
issue )

*SOLVED* :)

On 6 Aug., 15:48, QuBiT <[email protected]> wrote:
> Hi!
>
> I am using Rails3.0.0.rc and get an error which do not occur on
> Rails2.3.5
>
> In my model I have:
>
> validates :title, :presence => true, :uniqueness => true
>
> when I start up the console and enter:
>
> x=Blog.new
> x.valid? --> false
> x.errors --> OrderedHash{:title => ["can't be blank"]}
> x.title="an_existing_title"
> x.valid? --> false
> x.errors --> OrderedHash{:title=> ["translation missing: en,
> activerecord, errors, models, blog, attributes, title, taken"]}
>
> In Rails2.3.5 this error does not occur. ("title has already been
> taken")
>
> Is this an i18n error or is this a rails3.0.0.rc error?

-- 
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-i18n?hl=en.

Reply via email to