I found from the development log that I'm passing question_single_id as 
nil.
Seems to be my code of this part is not working

<%= f.fields_for :answer_singles,  {:question_single_id => index} do 
|answer| %>
    <%= answer.text_area :content, {:question_single_id => index} %>

What I meat to do was to assign question_single_id when I fill the 
answer :content.
And look up a text_area per each question.

Is there any good solution for text_area and fields_for usage?

I know I'm way far from CRUD development but what to do. (codes are 
getting uglier)

What i should implement is like a quiz system with given questions.
User login -> answer the given questions -> end
Admin -> edit questions or review user answers -> end

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to