jQuery modal dialog and jqGrid

The following code could do what you need $(“#wics”).click( function(){ var grid = jQuery(“#list10”); var ids = grid.jqGrid(‘getGridParam’,’selarrrow’); if (ids.length>0) { var names = []; for (var i=0, il=ids.length; i < il; i++) { var name = grid.jqGrid(‘getCell’, ids[i], ‘Name’); names.push(name); } //alert (“Names: ” + names.join(“, “) + “; ids: ” + ids.join(“, “)); … Read more

How do I set up email confirmation with Devise?

1. Make sure you include confirmable in Model.devise call class User < ActiveRecord::Base devise :database_authenticatable, :confirmable … end 2. Make sure you add confirmable to the user migration create_table :users do |t| t.database_authenticatable t.confirmable … end If you’re using devise 2.0+ this fails because devise no longer provides migration helpers, and so t.confirmable raises an … Read more