Ruby on Rails
Wednesday, December 29, 2010
You can use the mail_form gem - it's built on top of ActiveModel, so it acts like pretty similar to ActiveRecord models :)
2010/12/29 Marnen Laibow-Koser <lists@ruby-forum.com>
wardenik wrote in post #971297:
> Hey,Is it obvious? Do you want to save any of the info entered into the
>
> This is hopefully a very basic question, though I couldn't find a nice
> tutorial for that.
> I want to make in Rails3 a simple contact form, but with validation.
> So I thought, that I would use ActiveRecord for that, but it's obvious
> that I don't want a table for that.
form?
I believe you just need to use ActiveModel without the rest of
>
> So the question is how to make such a form with validation in Rails3
> DRY way?
>
> I would be grateful for a piece of code for the controller and the
> class itself.
ActiveRecord.
>
> Thanks.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
Sent from my iPhone
--
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@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.
--
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment