in controller, after reprioritizing "child", lists children in new order: @child.parent.children.sort_by{|g| g.priority } this, surprisingly, doesn't work: @child.parent.children.order(priority: :asc) why doesn't .order work? instead of sorting correctly, it's sorting previous order before operation run, assume it's using cached results (the query run before in operation). how 1 bust cache, if indeed problem? i've tried @child.reload after reprioritizing no avail. if have ordering on children association might try use reorder apply new ordering: @child.parent.children.reorder(priority: :asc)
my problem similar this: cq5: 403 forbidden occurs when call post servlet in aem 6.1 according accepted answer of above topic, must remove post apache sling referrer filter. wonder if action harmful system? , have better way fix issue? p/s: sorry english. if testing code on author mode, 403 forbidden error request. requires csrf token. or can declare dependency granite.csrf.standalone before can use framework. on publish should work fine.
the format of map imported should preferably ".shp" file.also please tell how create such file. have tried kml didn't work. yes, vectors need .shp imported. can create vector files in gis programs (arcgis, qgis, etc) , export .shp. or there's online tools converting kml .shp (eg http://www.zonums.com/online/kml2shp.php ) raster files need saved .asc or .grd use dataset in netlogo.
Comments
Post a Comment