You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to rebuild the app for Rails 3..
when running : http://localhost:3000/users/
I get the following page displayed ( all scripts are displayed like text...)
In case anyone else comes across this problem - Rails 3 now html encodes output by default. You have to explicitly override that default behaviour using raw(), so instead of your view containing:
I tried to rebuild the app for Rails 3..
when running : http://localhost:3000/users/
I get the following page displayed ( all scripts are displayed like text...)
<script type="text/javascript"> var lastsel; jQuery(document).ready(function(){ var mygrid = jQuery("#players").jqGrid({ url:'/users?q=1', editurl:'', datatype: "json", colNames:['ID','Pseudo','Firstname','Lastname','Email','Role'], colModel:[{name:'id', index:'id',width:35,resizable:false},{name:'pseudo', index:'pseudo'},{name:'firstname', index:'firstname'},{name:'lastname', index:'lastname'},{name:'email', index:'email'},{name:'role', index:'role'}], pager: '#players_pager', rowNum:10, rowList:[10,25,50,100], imgpath: '/images/jqgrid', sortname: '', viewrecords: true, height: 150, sortorder: '', gridview: false, scrollrows: true, autowidth: false, rownumbers: false, multiselect: false, subGrid:false, caption: "Football Players" }) .navGrid('#players_pager', {edit:false,add:false,del:false,search:false,refresh:true}, {afterSubmit:function(r,data){return true;(r,data,'edit');}}, {afterSubmit:function(r,data){return true;(r,data,'add');}}, {afterSubmit:function(r,data){return true;(r,data,'delete');}} ) .navButtonAdd("#players_pager",{caption:"",title:"Toggle Search Toolbar", buttonicon :'ui-icon-search', onClickButton:function(){ mygrid[0].toggleToolbar() } }) mygrid.filterToolbar();mygrid[0].toggleToolbar() }); </script>
...
The text was updated successfully, but these errors were encountered: