Canonical way to do a create form for ActiveResource?

What would be the proper way to do setup a create action for an ActiveResource?

I can't just use @object = MyResource.new in the new action, because the bare resource doesn't have any attributes, so in the form @object.name etc. will fail.

I can use an OpenStruct, but then other things fail, like error_messages_for

I would like if possible for the view to not have to care at all whether it is being used to edit an ActiveResource or an ActiveRecord.

Thanks, Michael Johnston