[phase-1]index view
This commit is contained in:
parent
02548925a9
commit
8f01c1db2a
@ -1,5 +1,6 @@
|
||||
class GlossaryTermsController < ApplicationController
|
||||
|
||||
def index
|
||||
@glossary_terms = GlossaryTerm.all
|
||||
end
|
||||
end
|
||||
|
@ -1 +1,22 @@
|
||||
<h2>GlossaryTermsController#index</h2>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>description</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @glossary_terms.each do |term| %>
|
||||
<tr>
|
||||
<td>
|
||||
<%= term.name %>
|
||||
</td>
|
||||
<td>
|
||||
<%= term.description %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user