If you create a scaffold for your rails project, it will create for you a lot of things; for example, a way to show your object in xml format. But what about adding custom elements to that xml? I solved in this way: class MyObject < ActiveRecord::Base #[...] def to_xml(options={}) cp = attributes.clone cp["something"] = …
Monthly Archive: April 2009
Apr
24
AS3 – Flex: TileList with ItemRenderer scrolling problem
When using wx:TileList with your own ItemRenderer, you have to remember two important things to avoid scrolling problems: If you override the set data method, remember to call super.data = value. Remember that the TileList reuses the ItemRenderer instances when scrolling the component! So, if you have a TileList with 5 rows and 5 cols, …