> http://www.railsapi.com/doc/rails-v3.0.0/classes/ActiveModel/Validati...
>
> --
> Greg Donald
> destiney.com | gregdonald.com
Thank you Greg!
Daniel
--
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
watch this
http://railscasts.com/episodes/211-validations-in-rails-3
On Fri, Sep 17, 2010 at 11:02 AM, radhames brito wrote:
> sorry the code i posted was for rails 2.3.x
>
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post t
sorry the code i posted was for rails 2.3.x
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr..
On Fri, Sep 17, 2010 at 9:46 AM, Daniel Lidström wrote:
> validates :name, :presence => true,
> :length => { :maximum => 50 }
>
> The above validates the name attribute, makes sure it is present and
> of maximu 50 characters. Both presence and length were provided by
> ActiveRe
On 16 Sep, 13:34, radhames brito wrote:
> validates triggers when validation accurds but it does not perform
> validation by it sellf you have to pass it the validation function
>
> validates :to_many_drinks
>
> def to_many_drinks
> self.drinks > 80
> errors.add(:drinks, "LOL")
> end
>
> this add
5 matches
Mail list logo