leikind / wice_grid

A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
MIT License
537 stars 215 forks source link

Undefinedcolumn because wicegrid converting attribut name to lowercase #218

Closed ddpdevang closed 9 years ago

ddpdevang commented 9 years ago

The problem is that wice_grid is converting my column name to lowercase as shown in screenshot...

My actual column in the database is "SpouseName", where else it is searching for spousename so the filters are not workig because of that.

Any solution to it, without changing the column name in database to that in lowercase

screenshot

leikind commented 9 years ago

Have a closer look at the error message and the sql. The sql code being executed mentions contact.SpouseName, it's correct, there is no case conversion happening.

Also, CameCase fields in Rails are disgusting and tasteless.