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