# Best Practice for form where the model being modified does not match the models being displayed?

**URL:** <https://www.ruby-forum.com/t/best-practice-for-form-where-the-model-being-modified-does-not-match-the-models-being-displayed/158191>\
**Category:** Rails\
**Created:** [January 20, 2009, 10:57am UTC](https://www.ruby-forum.com/t/best-practice-for-form-where-the-model-being-modified-does-not-match-the-models-being-displayed/158191 "2009-01-20T10:57:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_McManus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@Brian\_McManus](https://www.ruby-forum.com/u/Brian_McManus)\
**Post date:** [January 20, 2009, 10:57am UTC](https://www.ruby-forum.com/t/best-practice-for-form-where-the-model-being-modified-does-not-match-the-models-being-displayed/158191/1 "2009-01-20T10:57:38Z")

</div>

Sorry for the long title…

I was just wanting to make sure I’m close to on the right track with  
this before I get to far. Say you have a view that’s displaying some  
models that are not to be edited in a form that edits a model behind  
the scenes to save data. Is using normal form\_tag rather than the  
model helper versions the best/only thing to do?

Specifically I’m working on a quiz app and I need to display a  
question (Question model) with some answers (Answer models) and I need  
to save the user’s answer into another has\_many :through model (e.g.  
UsersAnswers) associating a User to their Answer.

Another related question… I’m trying to be restful so the question  
is displayed by the QuestionsController show method but where would  
the put/update for when they answer point to? Should there be another  
controller for the UsersAnswers model that this form submits back to  
rather than to the QuestionsController? Another question is should  
the question be displayed by QuestionsController.show in the first  
place since there’s a form involved and thus “editing” (even though  
it’s of another related model)?
