Canonical way to do a create form for ActiveResource?

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

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

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

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.

Michael J.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs