Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gibberish breaks Searchlogic {order} by default #1

Open
ened opened this issue May 7, 2010 · 0 comments
Open

Gibberish breaks Searchlogic {order} by default #1

ened opened this issue May 7, 2010 · 0 comments

Comments

@ened
Copy link

ened commented May 7, 2010

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant