[LRUG] Rails: presence validation and i18n

Andrew Stewart boss at airbladesoftware.com
Mon Sep 21 08:15:32 PDT 2015


On 21 Sep 2015, at 16:11, Andrew Stewart <boss at airbladesoftware.com> wrote:
> class Person
>  validates :name, presence: {scope: company_id}
> end

Oops!  The presence validator doesn't accept the scope option...

Sorry for the noise.

Cheers,
Andy



More information about the Chat mailing list