hey guys, got a simple question here new to rails and loving it!
i have form
<%= form_tag :action => "answer", :id => @question %>
Body: <br/> <%= text_area "answer", "body" %><br/>
<%= submit_tag 'Answer' %> </form>
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 ?