Closed pbendersky closed 3 weeks ago
I definitely don't dislike this but I have an alternative proposal in #519 that adds support for the following:
Trestle.resource(:articles) do
table exclude: [:updated_at, :created_at]
form exclude: [:updated_at, :created_at]
end
I would be interested in your thoughts.
I like how the DSL in #519 reads better than the one I proposed here. I'll close this PR in favor of #519 (go for it whenever you feel like, as it seems to be a frequently requested thing).
This PR adds the ability to exclude certain form fields when using the automatic form generator through the DSL.
This is an alternative take on #416 where it was done globally through the configuration.