Skip to content

Possible Problem with creating table header links in rails 3.0 #3

@chrisstr

Description

@chrisstr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions