I’m not sure how to even research this question so maybe some awesome rails developer can point me in the right direction.
I have a model that’s holding a question and correct answer. On the show view, I want the user to enter their answer into an input field and upon pressing submit, their answer is compared to the one held in the model. I don’t need to save their answer.
Thoughts?
You could use a non ActiveRecord model for that. Something like this:
Then in your controller you can do something like this: