If I were you I would buy a book or find info on the web and study how activerecord associations work. That will most likely clear all your questions and help you solve the problem. The examples I've read in any of the books I have are very clear. Good books: Agile Web Development with Rails and The Rails Way.
Good luck. On May 24, 5:43 am, Smoq <[email protected]> wrote: > On 24 Maj, 09:41, pavling <[email protected]> wrote: > > > > > On 24 May 2010 07:42, Smoq <[email protected]> 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 > > answers, or just have a variable for the user and access > > "@user.questions" in the view. > > > > I also think that the view should be > > > modified to show ALL user's answers - but I have no idea how it should > > > be changed. Could you modify it? > > > Are you asking me to *do* your work for you for free?! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to [email protected]. > > Do you suggest that I shuld pay you for the answer? :). I am learnig > RoR and I don't know how to solve the problem - it is not my work BTW. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

