"please contact your <%[email protected] %> mentor"
I am using the above syntax and it is wrong.
Can anyone please tell me the correct syntax for interpolating @user.name into a string using " ".
"please contact your <%[email protected] %> mentor"
I am using the above syntax and it is wrong.
Can anyone please tell me the correct syntax for interpolating @user.name into a string using " ".
The <%= %> format is for erb template files. If you want to do string interpolation within standard Ruby code, use the #{ } format instead.
"please contact your #{@user.name} mentor"