-
Notifications
You must be signed in to change notification settings - Fork 72
GridPanel troubleshooting
skozlov edited this page Feb 24, 2011
·
2 revisions
Q: When I try to define the scope for a GridPanel as Proc in the view, I'm getting the "No marshal_dump is defined for class Proc" error.
A: Instead of configuring the grid in the view, make a separate component for it, extending GridPanel, and configure the scopes there. The problem is that the "netzke" call in the view stores the component's configuration in the session, so, Proc objects can't be used in it.
Q: When I configure a grid to use a model scope which specifies a limit for records to fetch, the limit part of the scope is ignored.
A: You need to disable pagination for this to work (:enable_pagination => false on GridPanel), because otherwise it overrides the limit parameter in the SQL query.