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
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
from the Agile Web Development with Rails, Third Edition. (fourth printing), in Chapter 8.3 iteration C2: Creating a Smarter Cart (page 104), when creating the initial CartItem model class, the price function is defined thusly : 123 def price Continue reading Agile Web Development with Rails, erratum
The Real Lessons From Twitter If you were thrown into a fight, would you start punching or would you open up your iphone and start browsing web pages about Karate? : 1. If people use it, it’s valuable 2. Product, Continue reading The Real Lessons From Twitter and it’s an Evolving Architecture
In a lazyweb “fools seldom differ” moment, my post The Real Reason for Increased productivity behind Scripting Languages (commenting on a XKCD comic) has been riffed on by Bart of “Moves on Rails” : The new programmers excuse for slacking Continue reading The Real Reason for no Increased productivity behind Scripting Languages, reveled.