Replies: 1 comment 1 reply
-
"Strong params" is a Rails issue, and I assume you can handle params the same way you would when using ActiveRecord. However, I would avoid the use of "strong params", and use Sequel methods such as model = Model.new # or Model.with_pk!(model_id) for existing record
model.set_fields(params['model'], %w'field1 field2 ...')
model.save |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Sequel::Model.plugin :active_model
in combination with rails form helpers which is helpful. Or I suppose I could use forme. Anything else i'm missing.But I have a few questions:
Any pointers would be much appreciated. chrs!
Beta Was this translation helpful? Give feedback.
All reactions