Skip to content

Commit

Permalink
Use category rather than type throughout
Browse files Browse the repository at this point in the history
  • Loading branch information
practicingruby committed Mar 16, 2012
1 parent 744bf49 commit 198f869
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/controllers/discussions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class DiscussionsController < ApplicationController
before_filter :find_course

def index
@discussions = case params[:type]
@discussions = case params[:category]
when "conversation"
Discussion.conversations
when "review"
Expand Down
6 changes: 3 additions & 3 deletions app/views/discussions/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
= link_to "Conversations", course_discussions_path(:type => "conversation")
= link_to "Conversations", course_discussions_path(:category => "conversation")
|
= link_to "Reviews", course_discussions_path(:type => "review")
= link_to "Reviews", course_discussions_path(:category => "review")
|
= link_to "Evaluations", course_discussions_path(:type => "evaluation")
= link_to "Evaluations", course_discussions_path(:category => "evaluation")

%br
%br
Expand Down

0 comments on commit 198f869

Please sign in to comment.