Browse Source

Remove redundant delete_feed route

master
Adrian Short 11 years ago
parent
commit
8c9309b45e
2 changed files with 3 additions and 18 deletions
  1. +2
    -12
      app/controllers/feeds_controller.rb
  2. +1
    -6
      config/routes.rb

+ 2
- 12
app/controllers/feeds_controller.rb View File

@@ -59,18 +59,8 @@ class FeedsController < ApplicationController
end
end

# DELETE /feeds/1
# DELETE /feeds/1.json
# def destroy
# @feed = Feed.find(params[:id])
# @feed.destroy
#
# respond_to do |format|
# format.html { redirect_to feeds_url, notice: 'Feed deleted OK' }
# format.json { head :no_content }
# end
# end
# Feeds are never deleted. They're always retained in the DB.

def fetch
@feed = Feed.find(params[:id])
@feed.fetch


+ 1
- 6
config/routes.rb View File

@@ -2,12 +2,7 @@ Apollo::Application.routes.draw do
get "logout" => "sessions#destroy", :as => "logout"
get "login" => "sessions#new", :as => "login"

resources :layers do
member do
delete "delete_feed"
end
end

resources :layers
resources :users
resources :sessions
resources :password_resets


Loading…
Cancel
Save