Signed-off-by: Adrian Hinz <adhinz@gmail.com>

This commit is contained in:
Adrian Hinz 2017-11-29 23:22:44 +01:00
parent bb46a3ce69
commit 808c1a715d
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
class HomeController < ApplicationController
def index
@currencies = Currency.all
end
def seed

View File

@ -1,2 +1,8 @@
<h1>Home#index</h1>
<p>Find me in app/views/home/index.html.erb</p>
<h1>Currencies</h1>
<p>
<ul>
<% for curr in @currencies %>
<li><%= curr.name %> (<%= curr.description %>)</li>
<% end %>
</ul>
</p>