Skip to content

Commit

Permalink
Add about page
Browse files Browse the repository at this point in the history
  • Loading branch information
Calyhre committed May 15, 2017
1 parent ccc2d71 commit 99b47da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,14 @@ def glossary

send_data csv, type: 'text/csv; charset=utf-8; header=present'
end

def about
csv = CSV.generate(headers: true) do |rows|
rows << ['Page url', 'http://eshop.calyh.re']
rows << ['Author', 'https://reddit.com/u/Calyhre']
rows << ['Code', 'https://github.com/Calyhre/eshop-prices']
end

send_data csv, type: 'text/csv; charset=utf-8; header=present'
end
end
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
get :best_deals, to: 'application#best_deals'
get :rates, to: 'application#rates'
get :glossary, to: 'application#glossary'
get :about, to: 'application#about'
end

0 comments on commit 99b47da

Please sign in to comment.