<?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: thomis</title>
    <description>The latest articles on DEV Community by thomis (@thomisz).</description>
    <link>https://dev.to/thomisz</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%2F871732%2F3c815acc-ae36-4aa6-8858-17bc1561ead1.jpeg</url>
      <title>DEV Community: thomis</title>
      <link>https://dev.to/thomisz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thomisz"/>
    <language>en</language>
    <item>
      <title>learning_ruby.rb</title>
      <dc:creator>thomis</dc:creator>
      <pubDate>Thu, 02 Jun 2022 20:16:59 +0000</pubDate>
      <link>https://dev.to/thomisz/learningrubyrb-591j</link>
      <guid>https://dev.to/thomisz/learningrubyrb-591j</guid>
      <description>&lt;h3&gt;
  
  
  today i've learned about how rails deal with different environment (production, development and test).
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;i can setup my environment in three ways, each one i can put selected gems and versions and i think that is so cool.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* rails console -e production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def ambiente_rails
      if Rails.env.development?
         "Development"
         elsif Rails.env.production?
         "Production" 
         else 
         "Test"
      end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>ruby</category>
      <category>rails</category>
    </item>
  </channel>
</rss>
