Skip to content

Commit

Permalink
removed earlier code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishi Jain committed Jun 22, 2012
1 parent 6afbd65 commit de6d466
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 18 deletions.
7 changes: 1 addition & 6 deletions app/controllers/ideas_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class IdeasController < ApplicationController
before_filter :authenticate_user!, :except => [:index, :show]
before_filter :get_idea, :only => [:update, :edit, :show, :participate, :not_interested]
before_filter :get_idea, :only => [:update, :edit, :show, :participate]

def index
@ideas = Idea.includes(:users).includes(:categories)
Expand Down Expand Up @@ -48,11 +48,6 @@ def participate
end
end

def not_interested
idea_user = IdeaUser.where(:user_id => current_user.id, :idea_id => @idea.id).first
idea_user.destroy unless idea_user.nil?
end

private
def get_idea
@idea = Idea.find_by_id(params[:id])
Expand Down
2 changes: 0 additions & 2 deletions app/views/ideas/_link_for_participate.html.haml

This file was deleted.

3 changes: 0 additions & 3 deletions app/views/ideas/_link_for_un_participate.html.haml

This file was deleted.

2 changes: 0 additions & 2 deletions app/views/ideas/_participants_count.html.haml

This file was deleted.

4 changes: 0 additions & 4 deletions app/views/ideas/not_interested.js.haml

This file was deleted.

1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

resources :ideas do
get 'participate', :on => :member
get 'not_interested', :on => :member
resources :schedules
end

Expand Down

0 comments on commit de6d466

Please sign in to comment.