Interpolated string with form submission
I have a form that submits to an API....right now i have a field attribute
called
:subject
Which is basically the user name
What i want is to be able to add a string to this and say
Hello from :subject
right now I have this but it does not work
= f.text_field "Hello #{:subject}"
how can i fix this?
No comments:
Post a Comment