Initialize max value with Ruby on Rails ActiveRecord, automagically, from fat controller to smart model

Problem : you have a Object, lets call it “Item” with a “Display Order” Field, (called display_order, a integer) with controls the order which item are displayed. When the item is created you could have the field blank and expect Continue reading Initialize max value with Ruby on Rails ActiveRecord, automagically, from fat controller to smart model