first off, make sure that the content you want to be in the body is
assigned;
( content_var = "text submitted in texarea" )
and then:
mail_to "email@someplace", "Mail to someplace", :body =>
content_var
which will create a link
<a href="mailto:
email@someplace?body=text%20submitted%20in%20text%20area">
Mail to someplace
</a>
neat enough?
btw, generally speaking, there is a cool api for ruby on rails called,
(suprisingly enough) api.rubyonrails.com
i found the above info right here:
http://api.rubyonrails.com/classes/ActionView/Helpers/UrlHelper.html#M000492
hth,
shai
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---