Why are you making this assignment to string? For debugging?
And, please, change to 1.9 style of hash, like
```ruby
ids: @result.join(',')
```