Skip to content

Commit

Permalink
Add acem tool
Browse files Browse the repository at this point in the history
  • Loading branch information
stantastic6 committed Apr 14, 2015
1 parent 29da58c commit 6f8cd5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/views/pages/tools.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,5 @@
%td= tool.title
%td= tool.category_number
%td= tool.description

-# TODO change this when you receive the acem PDF file
- if tool.filename == 'acem.pdf'
%td Temporarily Unavailable
-else
%td= link_to "View/Download", learning_tool_path(tool),
target: '_blank'
%td= link_to "View/Download", learning_tool_path(tool),
target: '_blank'
4 changes: 4 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
# Mayor.create(name: 'Emanuel', city: cities.first)
require 'csv'

Mastery.destroy_all
Step.destroy_all
LearningTool.destroy_all

CSV.foreach(Rails.root.join("mastery.csv"), headers: true) do |row|
Mastery.create! do |mastery|
mastery.id = row[0]
Expand Down
Binary file added public/learning_tools/1/acem.pdf
Binary file not shown.

0 comments on commit 6f8cd5f

Please sign in to comment.