Rails best way to concatenate a string with a variable in a view

ruby, ruby-on-rails, ruby-on-rails-3

Solution

You can interpolate it as `request.fullpath == "/contacts/#{current_user.id}"`

Problem

Essentially I'm trying to perform this comparison ``` request.fullpath == "/contacts/"+current_user.id ``` What is the best way to concatenate a string with a variable to perform a comparison like this?

Original source