<?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: ICanDoAllThingThroughChrist</title>
    <description>The latest articles on DEV Community by ICanDoAllThingThroughChrist (@icandoallthingthroughchrist).</description>
    <link>https://dev.to/icandoallthingthroughchrist</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%2F326670%2Fb44748c0-bba3-4524-8800-83a91410a6d9.png</url>
      <title>DEV Community: ICanDoAllThingThroughChrist</title>
      <link>https://dev.to/icandoallthingthroughchrist</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/icandoallthingthroughchrist"/>
    <language>en</language>
    <item>
      <title>Object creations fails in Rails Console though it works in Ruby IRB{% stackoverflow 59960842 %}</title>
      <dc:creator>ICanDoAllThingThroughChrist</dc:creator>
      <pubDate>Wed, 29 Jan 2020 20:31:42 +0000</pubDate>
      <link>https://dev.to/icandoallthingthroughchrist/object-creations-fails-in-rails-console-though-it-works-in-ruby-irb-stackoverflow-59960842-1pal</link>
      <guid>https://dev.to/icandoallthingthroughchrist/object-creations-fails-in-rails-console-though-it-works-in-ruby-irb-stackoverflow-59960842-1pal</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nfpfhxRD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-7a8ef189e4f15e79cc8edc0cd3cff97b77dbaf61e8d5bee3c7507ace7d776b83.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/59960842/object-creations-fails-in-rails-console-though-it-works-in-ruby-irb-with-model" rel="noopener noreferrer"&gt;
               Object creations fails in Rails Console though it works in Ruby IRB; with Model in Activerecord Posted
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jan 29 '20&lt;/span&gt;
            &lt;span&gt;Comments: 3&lt;/span&gt;
            &lt;span&gt;Answers: 0&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/59960842/object-creations-fails-in-rails-console-though-it-works-in-ruby-irb-with-model" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---Gu-KklO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-d310ac55a57f00b74b1303a08e0f2e3cdea8fea5989fa5d70f506008aa86428b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          -1
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nOzY64sa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-fd895e09c6a93e39464cad43d727a293eae44c7228c087e86d478214a271c794.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I have the following subject scenario where I performed each on an array of thing1(311 service requests). It creates the new object in irb, but when I tried to use Create and Save the object to the Rails DB, it fails.Any idea why?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
class Sr &amp;lt; ApplicationRecord
  def initialize(h)
    h.each&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/59960842/object-creations-fails-in-rails-console-though-it-works-in-ruby-irb-with-model" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
