Skip navigation

# Ruby - Rails - Tracing Call to Know Multiple Trigger-call
class Model

  before_update :show_changed_fields

  def show_changed_fields
    p '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
    p Model.columns.map(&:name).select{|v|self.send("#{v}_changed?".to_sym) }
    p caller.select{|x|/\/app\//=~x}.collect{|x|x.split('/')[-1]}
  end

end

Advertisements


w2tags.heroku.com

this is the screen-shoot of my new project for sqlite admin call DB[:sqlite]

sqlite] on ubuntu 8.10


sqlite] on win32

W2Tags with rails.hot

W2Tags Book

W2Tags Hooked on Rails & Merb

The old friend of mine now got study for S2 in malaysia, he is interesting on making
the analog (human reading) of “meter-listrik” to become a barcode (see below ),
is it feasiable?

simple “jquery facebook autocomplete”
you can checkout from code.google at:
https://wharsojo-js.googlecode.com/svn/jquery.autocompletefb/trunk
or
http://wharsojo-js.googlecode.com/files/jquery.autocompletefb-0.1.1.zip

screen-shoot
jquery_acfb_sc_shoot
jquery_acfb_sc_shoot2

You need 3 files

1. \WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE
2. \WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.exe.manifest
3. \Windows\assembly\GAC_32\WebDev.WebHost\8.0.0.0__b03f5f7f11d50a3a\WebDev.WebHost.dll

no:3. you can’t copy with windows explorer, go to console and copy it