form fields not in schema

I’m putting some fields in my form that the controllers gonna use but they’re not columns in the table so I can’t validate at the model level? How can I validate them?

You can still add unpersistent attributes to your model and validate them like any other attribute on schema.

You should treat these params like any other param at controller and permit them.

Add this to your model

attr_accessor :some_attribute

So then you can do MyModel.new(some_attribute: 'foo')