Today I Learned Notes to self about software development

    form_with multipart data

    This whole time I thought I needed to do this for supporting files in forms:

      form_with(model: attachment, html: { enctype: "multipart/form-data"} ) 
    

    but it turns out you can actually just do this:

    form_with(model: attachment, multipart: true)
    

    which is cleaner and easier to remember.

    #rails