A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
537
stars
213
forks
source link
initialize_grid with ActiveRecord::Relation that contains alias attribute no longer works in 3.6.0.pre4 #271
Open
brianlu365 opened 8 years ago
In model I have a query with alias in select
It returns a activerecord relation something like this
but after I initialize_grid in controller and render the attribute in view, I got undefined method error. The same code works with wice_grid 3.4.14
This is how I initialized_grid in controller
render in view