Skip to content

Commit

Permalink
added setup table
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanbabu authored and mohanbabu committed Aug 1, 2017
1 parent 678e482 commit 555ebc0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ def index
end

def show

token = Setup.find_by_key("token").value
end
end
2 changes: 2 additions & 0 deletions app/models/setup.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Setup < ApplicationRecord
end
13 changes: 9 additions & 4 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,25 @@
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
<th>BuildPack Name</th>
<th>Current Verion</th>
<th>Latest Version</th>
<th>Update</th>
</tr>
</tr>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Doe</td>
<td>[email protected]</td>
<td>[email protected]</td>
</tr>
</tr>
</div>
</div>

</div>
</div>
</div>
</div>

0 comments on commit 555ebc0

Please sign in to comment.