[Rails] Re: Questionairee's questions - how to show all user's answers? How to update database with ALL user's answers?

2010-05-24 Thread Smoq
On 24 Maj, 09:41, pavling wrote: > On 24 May 2010 07:42, Smoq wrote: > > > Could you let me know what shuld be included in controller to list on > > the page ALL user's answers? > > You could populate a variable with the results of a find of the user's >

[Rails] Re: Questionairee's questions - how to show all user's answers? How to update database with ALL user's answers?

2010-05-23 Thread Smoq
On 23 Maj, 22:55, Michael Pavling wrote: > On 23 May 2010 17:52, Smoq wrote: > > > In a table "answers" I have columns: question, a1, a2, a3 (these > > columns are answers to the question), > > a_u (user's answer), a_ok (correct answer). Below I have

[Rails] Questionairee's questions - how to show all user's answers? How to update database with ALL user's answers?

2010-05-23 Thread Smoq
I am using RoR 2.3.5. I would like to have list of questions with three possible answers. After having copleted a test I would like to update the database with user's answers. At the bottom of the page I would also like to list all selected answers for the user. In a table "answers" I have columns