Signed-off-by: Adrian Hinz <adhinz@gmail.com>
This commit is contained in:
parent
bb46a3ce69
commit
808c1a715d
|
|
@ -1,6 +1,6 @@
|
||||||
class HomeController < ApplicationController
|
class HomeController < ApplicationController
|
||||||
def index
|
def index
|
||||||
|
@currencies = Currency.all
|
||||||
end
|
end
|
||||||
|
|
||||||
def seed
|
def seed
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,8 @@
|
||||||
<h1>Home#index</h1>
|
<h1>Currencies</h1>
|
||||||
<p>Find me in app/views/home/index.html.erb</p>
|
<p>
|
||||||
|
<ul>
|
||||||
|
<% for curr in @currencies %>
|
||||||
|
<li><%= curr.name %> (<%= curr.description %>)</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue