hey guys, got a simple question here new to rails and loving it!
i have form
<%= form_tag :action => “answer”, :id => @question %>
Body:
<%= text_area “answer”, “body” %>
<%= submit_tag ‘Answer’ %>
and in my controller
def answer
Question.find(params[:id]).question_answers.create(params[:answer])
redirect_to :action => “show”, :id => params[:id]
end
its storing the infromation (body, question_id) but not my user_id ,
how could i store it ?