Ruby on Rails Tuesday, May 4, 2010

On May 4, 5:27 am, Bob Smith <bsm...@gmail.com> wrote:
> I think that's what I did. I know the gem is running because I had
> validates_numericality using minimum and maximum, which broke as soon
> as I installed the gem. Validatable doesn't have those options. The
> include is on line 2 of the model.
>
Can you isolate which validation is causing the issue ? just looking
at the docs for validatable, looks like it might not have a
validates_date method - you're picking up the Active Record
validates_date which of course doesn't expect a :level option

Fred
> Bob
>
> On May 3, 6:53 am, Priyanka Pathak <li...@ruby-forum.com> wrote:
>
> > Hi,
> >       You just add include Validatable in your model after installing
> > validatable gem. level option will work with active record validation.
> > For more information refer this url -http://validatable.rubyforge.org/
>
> > --
> > Posted viahttp://www.ruby-forum.com/.
>
> > --
> > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment