Skip to content

Commit

Permalink
fixed certificates index view
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcockerham committed Sep 2, 2013
1 parent 0cb9409 commit e17141e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/controllers/certificates_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ class CertificatesController < ApplicationController
# GET /certificates
# GET /certificates.json
def index
@certificates = Certificate.all

#@certificates = Certificate.all
@certificates = current_user.certificates.all

respond_to do |format|
format.html # index.html.erb
format.json { render json: @certificates }
Expand Down
2 changes: 1 addition & 1 deletion app/views/certificates/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>Listing certificates</h1>
<h1>Your certificates</h1>

<table>
<tr>
Expand Down

0 comments on commit e17141e

Please sign in to comment.