Forum: Ruby on Rails Canonical way to do a create form for ActiveResource?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
91d00b2e1d76029cb9175053a846051b?d=identicon&s=25 Michael Johnston (Guest)
on 2007-04-26 00:50
(Received via mailing list)
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 Johnston
This topic is locked and can not be replied to.