Signed-off-by: Adrian Hinz <adhinz@gmail.com>
This commit is contained in:
parent
bb46a3ce69
commit
808c1a715d
|
|
@ -1,6 +1,6 @@
|
|||
class HomeController < ApplicationController
|
||||
def index
|
||||
|
||||
@currencies = Currency.all
|
||||
end
|
||||
|
||||
def seed
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue