This could be simplified to:

```ruby
path = Array(params[:path]).join(' ')
```