Skip to content

Commit

Permalink
db changes
Browse files Browse the repository at this point in the history
  • Loading branch information
playonverbs committed Dec 5, 2011
1 parent 870cce9 commit 5239879
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class Customers
end

get '/admin' do
@models = PhoneModels.all :order => :id
@customers = Customers.all :order => :id
erb :admin
end

Expand Down
2 changes: 1 addition & 1 deletion views/admin.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</tr>
</thead>
<tbody>
<% for phoneModel in PhoneModels %>
<% for phoneModel in @models %>
<tr>
<td><%= phoneModel.id %></td>
<td><%= phoneModel.make %></td>
Expand Down

0 comments on commit 5239879

Please sign in to comment.