<?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: Rishi Pithadiya</title>
    <description>The latest articles on DEV Community by Rishi Pithadiya (@rishi).</description>
    <link>https://dev.to/rishi</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%2F369666%2F00aec37f-31d2-4edd-b87b-cf1143c735dd.jpeg</url>
      <title>DEV Community: Rishi Pithadiya</title>
      <link>https://dev.to/rishi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rishi"/>
    <language>en</language>
    <item>
      <title>Do more with rails console by configuring ~/.irbrc 🎉</title>
      <dc:creator>Rishi Pithadiya</dc:creator>
      <pubDate>Mon, 22 Jun 2020 04:54:25 +0000</pubDate>
      <link>https://dev.to/rishi/do-more-with-rails-console-by-configuring-irbrc-3g7a</link>
      <guid>https://dev.to/rishi/do-more-with-rails-console-by-configuring-irbrc-3g7a</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;It´s better to wait for a productive programmer to become available than it is to wait for the first available programmer to become productive. &lt;br&gt;
&lt;a href="https://stevemcconnell.com/"&gt;Steve McConnell&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  What is ~/.irbrc file? 🔖
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;After work with multiple Rails apps, you might have some methods and preferred ways of working with them. &lt;/li&gt;
&lt;li&gt;i.e. you're using few generalized methods or configuration your IRB session(rails console) in a single project and want to have the same methods &amp;amp; configuration on other projects you're working on, you can add those methods &amp;amp; configuration in your &lt;em&gt;~/.irbrc&lt;/em&gt; file.&lt;/li&gt;
&lt;li&gt;You can create &lt;em&gt;~/.irbrc&lt;/em&gt; file in your root directory if it's not present.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Things you can include in your &lt;em&gt;~/.irbrc&lt;/em&gt; file 🗄
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Configurations which need to be used in all Rails Apps&lt;/li&gt;
&lt;li&gt;Methods which need to be used in all Rails Apps&lt;/li&gt;
&lt;li&gt;Require/load specific file(s) or Gem(s)&lt;/li&gt;
&lt;li&gt;Hacky convenience methods that help you play with your objects&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  My .irbrc file 🧮
&lt;/h3&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h3&gt;
  
  
  How to search awesome .irbrc file created by other devs 📭
&lt;/h3&gt;

&lt;p&gt;Just click on the following URL and it'll list all &lt;em&gt;~/.irbrc&lt;/em&gt; files created by other GitHub developers, you can create your file and add everything you need if you find anything useful -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://gist.github.com/search?l=Ruby&amp;amp;q=irbrc"&gt;https://gist.github.com/search?l=Ruby&amp;amp;q=irbrc&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  References 📌
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.ruby-lang.org/en/2.2.0/IRB.html"&gt;https://docs.ruby-lang.org/en/2.2.0/IRB.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.justinweiss.com/articles/fast-consistent-setup-for-your-ruby-and-rails-projects/"&gt;https://www.justinweiss.com/articles/fast-consistent-setup-for-your-ruby-and-rails-projects/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/kpumuk/dotfiles/blob/master/irbrc"&gt;https://github.com/kpumuk/dotfiles/blob/master/irbrc&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Found this post useful? please click the 🖤 button and share it to help others find it! Feel free to leave a comment below.&lt;/p&gt;




&lt;p&gt;👋 Say Hello! &lt;a href="https://twitter.com/rishipi"&gt;Twitter&lt;/a&gt; | &lt;a href="https://www.linkedin.com/in/rishipithadiya"&gt;LinkedIn&lt;/a&gt; | &lt;a href="https://medium.com/@rishipithadiya/"&gt;Medium&lt;/a&gt; | &lt;a href="https://www.instagram.com/long.lost.wanderer/"&gt;Instagram&lt;/a&gt; |&lt;/p&gt;

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