title: Ruby on Rails : generate erb html web page and can access database
body: <p>I'm quite new to Ruby on Rails, so many simple things that I cannot do it. Here is my problem that I face. In rails, when I generate a database, rails will generate a bunch of erb html file for this database. (view, edit, add, delete etc).</p>
  
  <p>Now, I want to add another erb file and satisfied two conditions. Firstly, It can use this database. For more detail, it can use this structure without config it:</p>
  
  <pre><code>&lt;% @products.each do |product| %&gt; 
  # product is a row in table products
  </code></pre>
  
  <p>And, secondly, browser can browse to this erb html file. For example:</p>
  
  <pre><code>http://localhost:3000/products/myfile
  </code></pre>
  
  <p>I think those action is really easy, but because I learn ruby on rails by tutorial, I cannot do those stuff. Please help me.</p>
  
  <p>Thanks :)</p>