Rails best way to concatenate a string with a variable in a view September 5, 2023 by Tarik You can interpolate it as request.fullpath == "/contacts/#{current_user.id}"