title: Better way to add configurations files in Ruby?
body: <p>I have an application in ruby, that I want to make some configurations. For example, in development, I want that a user can add only 10 photos on an albun for a certain plan. </p>
  
  <p>Something like this: </p>
  
  <pre><code>development: 
    number_photos:10
  production:
    number_photos:30
  </code></pre>
  
  <p>And want to acess those values on my controllers. For example. On my photos_controller.rb</p>
  
  <pre><code>def get_number_photos
       #how can I read the value of the number_photos of the configuration file? 
  end
  </code></pre>
  
  <p>What is the better way to do something like this? </p>