<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rocela Durazo Verdugo on Medium]]></title>
        <description><![CDATA[Stories by Rocela Durazo Verdugo on Medium]]></description>
        <link>https://medium.com/@roxdurazo?source=rss-23e3b29fcf67------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iQpLR31fEJpcqvP1sphnaQ.png</url>
            <title>Stories by Rocela Durazo Verdugo on Medium</title>
            <link>https://medium.com/@roxdurazo?source=rss-23e3b29fcf67------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 14:37:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@roxdurazo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[TIL #1 form_tag multipart: true on rails]]></title>
            <link>https://medium.com/@roxdurazo/til-1-form-tag-multipart-true-on-rails-b905fc75c7e9?source=rss-23e3b29fcf67------2</link>
            <guid isPermaLink="false">https://medium.com/p/b905fc75c7e9</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[forms]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[rails-uploads]]></category>
            <category><![CDATA[form-tag]]></category>
            <dc:creator><![CDATA[Rocela Durazo Verdugo]]></dc:creator>
            <pubDate>Fri, 16 Aug 2019 00:43:47 GMT</pubDate>
            <atom:updated>2019-08-16T00:51:54.868Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aiclF-zc5N7SiURe0aOrAw.png" /><figcaption>Example from the guides.rubyonrails.org</figcaption></figure><p>After struggling a bit on why my image wasn’t uploading on my database then I found out that my form was missing a param. I thought this was odd so I want to post a story that help me remember this. Hope this help you too.</p><h4>What I learn?</h4><p>if you want to upload a file/image/csv using a form_tag on rails then you <strong>must </strong>add the param multipart: true into the form_tag.</p><h4>Example</h4><pre>&lt;%= form_tag({action: <strong>:upload</strong>}, multipart: true) do %&gt;</pre><pre>  &lt;%= file_field_tag <em>&#39;image&#39;</em> %&gt;</pre><pre>&lt;% end %&gt;</pre><pre>&lt;%= form_for <strong>@user</strong> do |f| %&gt;</pre><pre>  &lt;%= f.file_field <strong>:picture</strong> %&gt;</pre><pre>&lt;% end %&gt;</pre><h4>resources</h4><ul><li><a href="https://stackoverflow.com/questions/27959257/when-we-have-to-use-multipart-true-in-rails#27959358">https://stackoverflow.com/questions/27959257/when-we-have-to-use-multipart-true-in-rails#27959358</a></li><li><a href="https://guides.rubyonrails.org/form_helpers.html#uploading-files">https://guides.rubyonrails.org/form_helpers.html#uploading-files</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b905fc75c7e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>