I keep getting this error:
ActionController::RoutingError (No route matches “/imgs/sky_blue_grid.gif”):
ActionController::RoutingError (No route matches “/images/dhtmlx/imgs/sort_desc.gif”):
In my app/views/qtl_table/view/html.erb:
View all QTLs
var grid = new dhtmlXGridObject("grid_here"); //grid.setImagePath("../../public/images"); grid.setImagePath("/images/dhtmlx/imgs/"); grid.setHeader("QTL name, Parent 1, Parent 2"); grid.attachHeader("#text_filter,#text_filter,#text_filter"); //added ! grid.setColSorting("str,str,str"); //added ! grid.setSkin("dhx_skyblue"); grid.setInitWidths("100,100,*"); grid.init(); grid.load("/qtl_table/data.xml"); <%- logger.debug "\n CREATE NEW DP\n"%>
dp = new dataProcessor("/qtl_table/dbaction.xml/");
dp.init(grid);
</script>
<input type="button" value="Add" onclick="grid.addRow(grid.uid(),'new QTL')">
<input type="button" value="Delete" onclick="grid.deleteSelectedRows()">