I'm the author of acts_as_api.
If you want to use it with a non-ActiveRecord
class, you have to extend your class with extend ActsAsApi::Base
.
In your case this would be
class MyModeltest
include ActiveModel::Model
extend ActsAsApi::Base
acts_as_api
attr_accessor :title, :content
api_accessible :public do |template|
template.add :title
template.add :content
end
end
You can find an example in the wiki:
https://github.com/fabrik42/acts_as_api/wiki/Declaring-api-templates-for-any-class%21-%28no-orms%29
If you need further assistance, just let me know. :)