<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Grzegorz Smajdor</title>
    <description>The latest articles on DEV Community by Grzegorz Smajdor (@gs).</description>
    <link>https://dev.to/gs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F781447%2Ffcb0ea0b-3fac-41ee-b48a-44d7d51d201e.jpeg</url>
      <title>DEV Community: Grzegorz Smajdor</title>
      <link>https://dev.to/gs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gs"/>
    <language>en</language>
    <item>
      <title>Ruby on Rails 7 with Ajax (axios)</title>
      <dc:creator>Grzegorz Smajdor</dc:creator>
      <pubDate>Sun, 30 Oct 2022 22:02:30 +0000</pubDate>
      <link>https://dev.to/gs/ruby-on-rails-7-with-ajax-axios-2kbp</link>
      <guid>https://dev.to/gs/ruby-on-rails-7-with-ajax-axios-2kbp</guid>
      <description>&lt;p&gt;Recently I was working with Ruby on Rails 7 and needed to do an API requests from javascript to my ROR backend. In the past I choose &lt;code&gt;[axios](https://github.com/axios/axios)&lt;/code&gt; for that and still, I decided to use it (as I don't yet know Turbo).&lt;/p&gt;

&lt;p&gt;The feature was to check if user exists in the DB from the modal.&lt;/p&gt;

&lt;p&gt;After &lt;code&gt;./bin/importmap pin axios&lt;/code&gt; and building the stimulus controller I got an error in a browser:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;TypeError: Cannot read properties of undefined (reading &lt;br&gt;
 'FormData   at index.js:162:32&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I started to google, and search on stackoverflow for the solution but could not find anything useful.&lt;/p&gt;

&lt;p&gt;After few minutes ... without any success I just decided to experiment with different versions of &lt;code&gt;axios&lt;/code&gt; and guess what...turns out that the version &lt;strong&gt;0.27.2&lt;/strong&gt; was working as expected&lt;/p&gt;

&lt;p&gt;After pinning the &lt;strong&gt;version 0.27.2&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;./bin/importmap pin axios@0.27.2&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The AJAX request worked like charm! I'm sharing this here, as You might find it useful!&lt;/p&gt;

&lt;p&gt;The longer read you can find on &lt;a href="https://medium.com/@grzegorz.smajdor/ruby-on-rails-7-with-ajax-axios-8beb0a793d9c"&gt;medium&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All the best!&lt;br&gt;
Grzegorz&lt;/p&gt;

</description>
      <category>rails</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>HotReload with Ruby on Rails 7</title>
      <dc:creator>Grzegorz Smajdor</dc:creator>
      <pubDate>Mon, 17 Oct 2022 21:53:37 +0000</pubDate>
      <link>https://dev.to/gs/hotreload-with-ruby-on-rails-7-3g1l</link>
      <guid>https://dev.to/gs/hotreload-with-ruby-on-rails-7-3g1l</guid>
      <description>&lt;p&gt;Hi Folks, &lt;/p&gt;

&lt;p&gt;Just &lt;a href="https://medium.com/@grzegorz.smajdor/hotreload-with-ruby-on-rails-7-cbca367500fe"&gt;published&lt;/a&gt; a small article about the hot-reload in Ruby on Rails 7 on &lt;a href="https://medium.com/@grzegorz.smajdor/hotreload-with-ruby-on-rails-7-cbca367500fe"&gt;medium&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Hope you find it useful!&lt;/p&gt;

&lt;p&gt;Br,&lt;br&gt;
&lt;a href="//www.grzegorz-smajdor.com"&gt;Grzegorz&lt;/a&gt;&lt;br&gt;
@&lt;a href="//www.deliverists.io"&gt;deliverists.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rails</category>
      <category>programming</category>
      <category>productivity</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Rails 7 with Bootstrap! So much fun!</title>
      <dc:creator>Grzegorz Smajdor</dc:creator>
      <pubDate>Wed, 05 Jan 2022 20:24:17 +0000</pubDate>
      <link>https://dev.to/gs/rails-7-with-bootstrap-so-much-fun-3462</link>
      <guid>https://dev.to/gs/rails-7-with-bootstrap-so-much-fun-3462</guid>
      <description>&lt;p&gt;Hi Folks!&lt;br&gt;
published an &lt;a href="https://medium.com/@grzegorz.smajdor/rails-7-with-bootstrap-css-52f5468ead38"&gt;article&lt;/a&gt; about Bootstrap and Rails 7! &lt;/p&gt;

&lt;p&gt;Happy reading,&lt;br&gt;
Grzegorz&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>rails</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Ruby on Rails with Vim</title>
      <dc:creator>Grzegorz Smajdor</dc:creator>
      <pubDate>Mon, 27 Dec 2021 15:47:06 +0000</pubDate>
      <link>https://dev.to/gs/ruby-on-rails-with-vim-10o1</link>
      <guid>https://dev.to/gs/ruby-on-rails-with-vim-10o1</guid>
      <description>&lt;p&gt;Hi folks! &lt;/p&gt;

&lt;p&gt;Hope you enjoy your holidays, and you are preparing self for 2022! &lt;/p&gt;

&lt;p&gt;Meantime, I’ve wrote new article &lt;a href="https://medium.com/@grzegorz.smajdor/ruby-on-rails-and-vim-6bcf84e0bc08"&gt;Ruby on Rails with Vim&lt;/a&gt; &lt;br&gt;
Happy reading!&lt;/p&gt;

</description>
      <category>rails</category>
      <category>vim</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
