in_place_edit_for - non clickable when value is blank

Don't know if you found a solution to this but here's mine: In my
database definition I make the default value a '-' (or some other
non-meaningful value) for a varchar field, or 0 for an int field. My
migration to modify existing columns looks like this:

<code>
class ChangeDefaults < ActiveRecord::Migration
  def self.up
    change_column :nodes, :sysName, :string, :null => false, :default
=> '-'
    change_column :nodes, :ip, :string, :null => false, :default
=> '-'
    change_column :ports, :vlan, :integer, :null => false, :default =>
0
  end
end
</code>

With this you don't need to modify any plugin code.

Hope this helps.

James Riley wrote:

Colin Wu wrote:

Don't know if you found a solution to this but here's mine: In my
database definition I make the default value a '-' (or some other
non-meaningful value) for a varchar field, or 0 for an int field.

Terrible idea. This is meaningless default data that is only neede for
display reasons, and as such has no place in the DB.

Best,