sortable icon indicating copy to clipboard operation
sortable copied to clipboard

Possible Problem with creating table header links in rails 3.0

Open chrisstr opened this issue 14 years ago • 1 comments

I've included the plugin in a rails 3.0 app and it mostly worked as expected. But i have experienced some problems with the table header generation, looks like the ActionView method "link_to" has a problem with the way the options-array is generated by "build_url_params" in sortable_helper.rb.

The solution for me was to change line 57 in sortable_helper.rb from

"return {:action => action, :params => params}" to "return {:action => action}.merge(params)"

I did that change via an initializer to prevent touching the plugin and i didn't thoroughly test it, but it works for me. And as far as i checked, it shouldn't create any unwanted side-effects.

chrisstr avatar Dec 30 '10 11:12 chrisstr

Hey Sorry I just saw this now... cool thanks for the report. I'll check it out when I upgrade my app to rails 3 and put that into the repo.

kovacs avatar Mar 16 '11 06:03 kovacs