Closed afdev82 closed 8 years ago
The query string is:
grid[order]=configuration_id&grid[order_direction]=asc
If I submit this:
grid[order]=configurations.configuration_id&grid[order_direction]=asc, it works
Please give more info about your data model
I have the "Configurations::Configuration" class, that represents a "configuration" of one product in a "configurator" web application. This is the class without its methods:
class Configurations::Configuration < ActiveRecord::Base
include GettersHelper
include JsHelper
self.primary_key = 'configuration_id'
self.table_name = 'configurations.configurations'
serialize :included, JSON
serialize :restricted, JSON
<private code>
WiceGrid is likely not to work correctly with posgresql tables in non-public schemas, i.e. with table names like 'configurations.configurations'. Cannot say for sure because I don't use Postgresql, and all users of WiceGrid with posgresql use the public schema, a flat list of tables.
Ok, thanks!
Do you think is it possible to make a wrapper or initializer to change the behaviour of WiceGrid to handle this?
I am pretty sure it would be not that difficult to solve this problem, unfortunately at present I cannot say when I'll do it. But I will accept pull requests :-)
Ok, thanks. I will think about it, if I can I would be proud to contribute ;)
The issue is quote_table_name("public.car.color")
returns "public"."car"
and drops the .color
.
We have the same issue while using the Apartment gem to switch between public schemas.
Thank you @brian-vogogo ;)
When I try to order a field of my Configurations::Configuration model, I get the following error:
I initialized the grid simply in this way:
In my view I have:
Thank you in advance!