Closed winterbang closed 9 years ago
I need to see the code and stack traces. I do not possess telepathy skills.
Also the version number
def income_expenses
@freports = initialize_grid(Freport.active_null,
:order => 'freports.created_at',
:include => [:doctor, :order],
:csv_file_name => 'projects'
)
@freports.read
end
thanks!
Please remove the call to read. You don't need it. There is no #read
in examples. And what you attached is not a stacktrace.
@leikind How can I get ActiveRecord::Relation of Freport after filter. Is there provided method?
I am not sure I understand.Please elaborate
I am sorry for my terrible English.
def income_expenses
@freports = initialize_grid(Freport.active_null,
:order => 'freports.created_at',
:include => [:doctor, :order],
:csv_file_name => 'projects'
)
@freports.read
end
This code will filter Freport record. But the @freports
is not ActiveRecord Relation instance. I want get the object of record of filter via the object of @freports.
is there any methodes for this?
This is how you do it: http://wicegrid.herokuapp.com/resultset_processings2
REMOVE @freports.read
!
ok, thanks
I guess that there is some bug in the method “form_ar_options” of class Wice::WiceGrid