```ruby
Rails.application.routes.draw do
  root to: 'campaigns#index'

  resources :campaigns do
    get :manage_members
    get :join_request
    resources :money_history
    resources :heroes do
      post :change_money
    end
    resources :items do
      get :sell
      get :reclaim
    end
    resources :ideas
    resources :games, except: [:index] do
      resources :posts, only: [:new, :edit, :create, :update, :destroy] do
        resources :comments, only: [:new, :edit, :create, :update, :destroy]
        member do
          get :vote
        end
      end
    end
    resources :rewards do
      member do
        get :purchase
        get :purchase_for_user
      end
    end
    member do
      get :toggle_membership
      get :show_posts
    end

    post :change_money
  end

  resources :purchases, only: [] do
    member do
      get :toggle_used
    end
  end

  devise_for :users
  resources :users, only: [:index, :show]
  get '/users/become/:id', to: 'users#become', as: :become_user
  mount Flip::Engine => "/features"
end
```

Add route 'toggle_used' to Ideas
user
```ruby
Rails.application.routes.draw do
  root to: 'campaigns#index'

  resources :campaigns do
    get :manage_members
    get :join_request
    resources :money_history
    resources :heroes do
      post :change_money
    end
    resources :items do
      get :sell
      get :reclaim
    end
    resources :ideas do
      get :toggle_used
    end
    resources :games, except: [:index] do
      resources :posts, only: [:new, :edit, :create, :update, :destroy] do
        resources :comments, only: [:new, :edit, :create, :update, :destroy]
        member do
          get :vote
        end
      end
    end
    resources :rewards do
      member do
        get :purchase
        get :purchase_for_user
      end
    end
    member do
      get :toggle_membership
      get :show_posts
    end

    post :change_money
  end

  resources :purchases, only: [] do
    member do
      get :toggle_used
    end
  end

  devise_for :users
  resources :users, only: [:index, :show]
  get '/users/become/:id', to: 'users#become', as: :become_user
  mount Flip::Engine => "/features"
end
```
assistant