RightScale Blog

Cloud Management Blog
RightScale 2014 State of the Cloud Report
Cloud Management Blog

Add new comment

Hi. I heard your good news(http://gigaom.com/2008/04/23/rightscale-takes-45m-for-the-cloud/). I'm using your gem for SimpleDB, and wrote this post(http://flyingmate.net/46). Although it's written in Korean, you can understand the code of ActiveItem(named temporarily) at the middle of the post. That code snippet helps using SimpleDB similar to ActiveRecord, for example, you don't need to change controller codes and view codes for using RightAws::ActiveSdb. It wraps your attribute method like [] and []= with accessor method like #{attribute_name} and #{attribute_name}= for convenience. Action View's form_for helper use #{attribute_name}= style methods in default, and can not recognize []= style methods. If developer use form_for method without changing form_for helper with RightAws::ActiveSdb, undefined method #{attribute_name}= error occurs. So I suggest that implement your code with #{attribute_name} style method. In advance, I hope RightAws::ActiveSdb supports validations and associations like ActiveRecord. Thanks Sung Hoon