unofficially on Rails 2.3 and small bug fix for API

unofficially on Rails 2.3 and small bug fix for API