I have a model and I want to allow users to edit different subsets of the model's attributes at different points. Consider a model with attributes A, B, C, D, E, and F.
I would like to have the model initially created with a form that has fields for A and B. Then at another step in the process I would like to show the user a form to edit the model and have that form have fields for C and D and E. At another point I would like to show them a form to edit the model and have that form have fields for A, E, and F. My actual situation is more complicated than this but for the sake of this question I believe this is adequate. What are different good ways to serve up those different forms? The only way I can think of right now is:
- Have a different action and respective form for each case and create the requisite routes in the routes.rb file.