Carl Youngblood
2005-Jul-21 03:32 UTC
How to create form with validation that sends email instead of storing in DB?
I have a couple of forms in a PHP app that send emails to the site admin using PHP''s mail() function. I''m converting the site over to rails now. What''s the best way to create a validating form that is not based on a model? Thanks, Carl _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Michael Koziarski
2005-Jul-21 03:45 UTC
Re: How to create form with validation that sends email instead of storing in DB?
On 7/21/05, Carl Youngblood <carl.youngblood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have a couple of forms in a PHP app that send emails to the site admin > using PHP''s mail() function. I''m converting the site over to rails now. > What''s the best way to create a validating form that is not based on a > model?I''m using validating base with great success. http://wiki.rubyonrails.com/rails/show/HowToUseValidationsWithoutExtendingActiveRecord -- Cheers Koz
Carl Youngblood
2005-Jul-21 18:51 UTC
Re: How to create form with validation that sends email instead of storing in DB?
Thanks. Does this method automatically tie in error reporting in forms and such if the data fails to validate? On 7/20/05, Michael Koziarski <koziarski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 7/21/05, Carl Youngblood <carl.youngblood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I have a couple of forms in a PHP app that send emails to the site admin > > using PHP''s mail() function. I''m converting the site over to rails now. > > What''s the best way to create a validating form that is not based on a > > model? > > I''m using validating base with great success. > > > http://wiki.rubyonrails.com/rails/show/HowToUseValidationsWithoutExtendingActiveRecord_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails