Hi,
How do I access a model's parent's attribute in a form? For example, for the following form for answer, I want to access answer.question.text and use that for the question - how do I do this?
Thanks!
<% form_for :answers do |ans| %>
<%= ans.label :question, "Question" %>
<%= ans.text_field :value %>