Hi Everybody, I need to create a non model form. But also I would like to validate the form fields as you would validate a model form using validates_presence_of, validates_numericality_of...etc. How can I do this? I will appreciate if someone can give me a working example since I am not an experience Rails developer. Thanks! -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
are u using rails 3?) Ivan Nastyukhin dieinzige-BUHhN+a2lJ4@public.gmane.org On Jun 21, 2010, at 8:34 PM, Rails Learner wrote:> Hi Everybody, > > I need to create a non model form. > But also I would like to validate the form fields as you would validate > a model form using validates_presence_of, > validates_numericality_of...etc. > > How can I do this? > > I will appreciate if someone can give me a working example since I am > not an experience Rails developer. > > Thanks! > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No....I am using rails 2.3.5 Thanks! -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, better you try these gems for non-model validation active_record_no_table - http://www.railsfire.com/article/validating-non-active-record-model-using-active-record-no-table validatable - http://validatable.rubyforge.org/ Regards, T.Veeraa. Rails Learner wrote:> Hi Everybody, > > I need to create a non model form. > But also I would like to validate the form fields as you would validate > a model form using validates_presence_of, > validates_numericality_of...etc. > > How can I do this? > > I will appreciate if someone can give me a working example since I am > not an experience Rails developer. > > Thanks!-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
You could also take a look at HTML5 form validation. On Jun 22, 8:33 am, Veera Sundaravel <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > better you try these gems for non-model validation > > active_record_no_table -http://www.railsfire.com/article/validating-non-active-record-model-u... > > validatable -http://validatable.rubyforge.org/ > > Regards, > T.Veeraa. > > Rails Learner wrote: > > Hi Everybody, > > > I need to create a non model form. > > But also I would like to validate the form fields as you would validate > > a model form using validates_presence_of, > > validates_numericality_of...etc. > > > How can I do this? > > > I will appreciate if someone can give me a working example since I am > > not an experience Rails developer. > > > Thanks! > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
its slki) validation should be always duplicated at server side =) Ivan Nastyukhin dieinzige-BUHhN+a2lJ4@public.gmane.org On Jun 22, 2010, at 11:51 AM, tsenart wrote:> You could also take a look at HTML5 form validation. > > On Jun 22, 8:33 am, Veera Sundaravel <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> Hi, >> >> better you try these gems for non-model validation >> >> active_record_no_table -http://www.railsfire.com/article/validating-non-active-record-model-u... >> >> validatable -http://validatable.rubyforge.org/ >> >> Regards, >> T.Veeraa. >> >> Rails Learner wrote: >>> Hi Everybody, >> >>> I need to create a non model form. >>> But also I would like to validate the form fields as you would validate >>> a model form using validates_presence_of, >>> validates_numericality_of...etc. >> >>> How can I do this? >> >>> I will appreciate if someone can give me a working example since I am >>> not an experience Rails developer. >> >>> Thanks! >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks Everyone! I have now something to get started. I will let you know if I have further issues. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.