Fresh Mix wrote: > MaD wrote: >> can you set a debugger in your Controller/Model to see what is >> actually received? > > How can I se a debbuger? > >>validates_inclusion_of :category, :in => %w( X, Y, XY ) >>validates_length_of :gender, :maximum => 3, :allow_nil => true >>validates_length_of :tag, :in => 1..10 > > gender works now, but tag and category nope.
For tag also you give validates_length_of :tag, :maximum=>10 like that and try.. you can give minimum also in this.. -- Posted via http://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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

