I have a Rails Application where I want to present user with a sequence of Questions in a particular order. A user cannot proceed to the next question unless he has answered the previous one.
Here are some design issues I need help on for an efficient implementation:
To fetch a list of questions for a user I need to make an expensive db call. Once for a new session, the list if fetched I simply want the user to see the questions in a particular order starting from the first question. If the user had attempted some questions in a pervious session he will jump to the question he last left off. How to implement it efficiently? I believe I need caching here.
On rendering the views :
How to render the view for this feature? I can have a controller with the initial question template. When user attempts the question, should I have question-answer options text updating with AJAX? Do I have to use jquery for the purpose or any Rails helper could be of help here?
Any design help, rails features-gems I could make use of will be welcomed.