ruby on rails - ROR maintain history of object updates -


i have model want store history of changes to, plan rather update object create new 1 , on show fetch latest version.

this plan presents number of difficulties firstly id different after update indend around keeping second id column same updates of instance.

to end have created sqlite sequence second coloumn.

my question how can values sequence in model/controller want on first time object created, secondly how can use second id column url object fixed throughout updates.

many thanks,

check out papertrail gem. might want , sidestep issues completely.

https://github.com/airblade/paper_trail


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -