Tuesday, 10 September 2013

Rails - adding a string in front of a form parameter

Rails - adding a string in front of a form parameter

I am at a lost and cannot seem to find a solution anywhere for this...
all i want to do is be able to add a little greeting in front of my user's
name when they submit a form via an external API...so nothing is being
saved to my database
ALL I WANT TO BE ABLE TO DO IS THIS
"Web inquiry from Jon Doe"
so i have a form
<%= text_field :subject %>
when the user puts his name into it and submits the form my client can go
to the external website where its being posted and see
"Web inquiry from Jon Doe"
So i just need to be able to tack on the
Web inquiry from
part to the name on the form?
Please help me...your my only hope

No comments:

Post a Comment