Skip to content

Commit

Permalink
Merge 8aa1df7 into 48924a5
Browse files Browse the repository at this point in the history
  • Loading branch information
langphil committed Aug 29, 2018
2 parents 48924a5 + 8aa1df7 commit 600ae9d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.1
FROM ruby:2.2.7

RUN bundle config --global frozen 1

Expand Down
13 changes: 0 additions & 13 deletions app/controllers/main_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,6 @@ def home
end
end

def comment
@topic = params[:topic]
@title = params[:title] || @topic
@back = params[:back]

# Look for a question with this topic and use the help text
@topic_help = begin
Question.find(params[:question_id]).help_text
rescue ActiveRecord::RecordNotFound
''
end
end

def discussion
@topic = 'general'
@topic_help = I18n.t 'general', scope: :discussions, default: ''
Expand Down
17 changes: 0 additions & 17 deletions app/views/main/comment.html.haml

This file was deleted.

3 changes: 1 addition & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
get 'get_badge' => 'certificates#certificate_from_dataset_url'

# comment pages
get 'comment' => 'main#comment', as: :comment
get 'discussion' => 'main#discussion', as: :discussion # general/site-wide

get 'has_js' => 'main#has_js'
Expand All @@ -148,7 +147,7 @@
post 'schedule', to: 'campaigns#schedule', as: 'scheduled_rerun'
post 'queue_update', to: 'campaigns#queue_update', as: 'queue_update'
end

# private stats
get 'status/published_certificates.csv' => 'main#published_certificates'
get 'status/all_certificates.csv' => 'main#all_certificates'
Expand Down

0 comments on commit 600ae9d

Please sign in to comment.