Skip to content

sort_link on polymorphic association #421

@glaucocustodio

Description

@glaucocustodio

Hi guys, I am on Rails 4.1 (Ruby 2.1.2) and ransack branch: 'rails-4.1'.

I have this search field working as expected:
xxxable_of_Ymodel_type_some_attr_gteq

But when I try to sort by the same field:
= sort_link(@q, :xxxable_of_Ymodel_type_some_attr

I get this error: uninitialized constant Model::Xxxable

Sort link does not work with polymorphic association? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions