Many Rails helpers take multiple hash arguments. The first is usually the options to control the helper itself, and the second is the html_options where you specifiy custom ids, classes etc.
You'll notice the multiple '= {}' in the params list. To use this, the first set of options that you would specify must actually be enclosed in braces:
Just in case, I was struggling with the same problem, I share my result, I was trying just putting {},{}, so I had to be more explicit putting like this: options = {}, html_options = {}, because it did not work for me.