Skip to content

Gibberish breaks Searchlogic {order} by default #1

@ened

Description

@ened

Hi:

Mysql::Error: Unknown column 'users.order' in 'where clause': SELECT * FROM users WHERE (users.order = 'NAME ASC') LIMIT 0, 20

=> that's what I got on a fresh install of Gibberish.

I was not able to figure out how to solve the problem yet.

in users_controller:
@search = User.search({:order => 'NAME ASC'}.merge(params[:search] || {}))

I already added
Gibberish.add_reserved_key :order

How to solve?

BR,
Sebastian

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