embeds_one respond_to?(:persisted?) problem

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 2.1.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      hi

      i have a problem with this code:

      form_for person.name

      will create a POST form, and thats wrong because the object already exsists and i need a PUT form.

      the problem is that rails does this in the form_helper.rb in the line 329

      if object.respond_to?(:persisted?) && object.persisted?

      it returns false because object.respond_to?(:persisted?) is false. not sure why but im sure its a bug.

              Assignee:
              Durran Jordan
              Reporter:
              antpaw
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: