Using [parameterize](http://api.rubyonrails.org/classes/String.html#method-i-parameterize) might simplify the title conversion:

```ruby
"row-#{title.to_s.parameterize("_")}"
```