In this form, the only case where `poll` might be present without `question.poll` being present to is going to be the `new` action. We can assign the poll in the `new` action and get rid of the `poll` variable in the form.
2 lines
82 B
Plaintext
2 lines
82 B
Plaintext
<%= render Admin::Poll::Questions::FormComponent.new(@question, url: form_url) %>
|