@xcombinator
- Here's how we did the paging UIScrollView (+ cocos2d) in Jacob's Shapes: http://bit.ly/bTHbUx 3 hours ago
-
Recent Posts
Recent Comments
- A Paging UIScrollView in Cocos2d (with previews) (3)
- XPhoenix: I could just email you my 2.5mb converted correctly compiling project?
- Nate Murray: Hmm, I’ll take a look at that and try to fix it soon!
- XPhoenix: Hey man, Very nice, except your project on github has 3 problems. 1. It has a depency on Adobe Device CS5...
- ActiveRecord from_json and from_xml (5)
- Terence: Dude, you are the bomb. Thanks for your fix. Helped us out heaps.
- djb daemontools with Ubuntu’s upstart (2)
- sorcess: such config may lead to data loss… consider above configuration with this little change start on...
- A Paging UIScrollView in Cocos2d (with previews) (3)
Categories
- bookmarks (2)
- cascading (2)
- code (2)
- crawling (2)
- deployment (6)
- ec2 (3)
- erlang (2)
- gems (3)
- git (7)
- hadoop (3)
- java (1)
- merb (1)
- music (1)
- osx (2)
- poolparty (3)
- processing (1)
- programming (51)
- rails (11)
- ruby (21)
- scalability (5)
- shell (8)
- sysadmin (16)
- tips (13)
- Uncategorized (3)
- useless (1)
Archives
Pages
Blogroll
Tag Archives: from_xml
ActiveRecord from_json and from_xml
Unless I’m missing something, the default rails from_json and from_xml methods don’t work with data that have associated objects. Here are routines that work for some simple examples I’ve tested. I placed this code in vendor/rails/activerecord/lib/active_record/base.rb within the ActiveRecord::Base class, but there might be a better place to put it.
def self.from_hash( hash )
h [...]
Posted in programming, rails Also tagged ActiveRecord, from_json, ruby on rails, to_json, to_xml 5 Comments

ActiveRecord from_xml (and from_json) part 2