-
Notifications
You must be signed in to change notification settings - Fork 76
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
Using non-standard primary keys #35
Comments
Can you post the Log output ? |
This is the error message: "ID": invalid identifier: SELECT * FROM ( My primary key for this table, is called "codigocliente". Thanks. |
hey @panchox9103 did u find any solution for the error you have mentioned.. I am kinda stuck at it..! |
nop. I'm using ransack (https://github.com/ernie/ransack http://railscasts.com/episodes/370-ransack?view=asciicast) for the filters. |
Try: def default_order |
Hi everyone.
I have a table that doesn't use the standar in the definition for the primary key.
When try to use will_filter, it generate a "ORDER BY id desc" but this column doesn't exists.
In the model I defined the correst name for the primary key: self.primary_key = 'name_primary_key'
What I need to do for will_filter use this primary key and not the "id" ?
Thanks.
The text was updated successfully, but these errors were encountered: