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

Adding a “loading” image to (just about) any form on submit, with jQquery

under the category of the simplest thing that will actual work, I wanted to have one of those nice animate swilling icons running after the user hit the submit button so they knew that something was really happening. The core Continue reading Adding a “loading” image to (just about) any form on submit, with jQquery

Building a Cascading Drop Down Selection List for Ruby on Rails with jQuery Ajax

A frequent need in building web site application is to have users select one value and then, based on that value, select another value. Real world needs for related values might be : Select a Country and then State or Continue reading Building a Cascading Drop Down Selection List for Ruby on Rails with jQuery Ajax