Using MYSQL views in rails
<p>I want to create a view on MYSQL table and found the gem 
<a href="https://github.com/anykeyh/rails_db_views" rel="nofollow">https://github.com/anykeyh/rails_db_views</a> </p>

<p>but I did not understand how could I use it as I find the documentation not clear.
Where should I put this code in my project (which file and directory ) </p>

<pre><code>Rails.configure do |config|
  config.rails_db_views.views_path += %w( /some/view/path )
  config.rails_db_views.views_extension = "*.sql"

  config.rails_db_views.functions_path += %w( /some/function/path )
  config.rails_db_views.functions_extension = "*.sql"
end
</code></pre>

<p>I would be thankful if anyone told the full steps to use it .</p>