diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index cec65cda..fb49ae15 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -46,16 +46,6 @@ class TopicsController < ApplicationController end end - # GET showcard/:id - def showcard - @user = current_user - @topic = Topic.find(params[:id]).authorize_to_show(@user) - - respond_to do |format| - format.html { respond_with(@topic, @user) } - end - end - # POST topics def create diff --git a/app/views/topics/showcard.html.erb b/app/views/topics/showcard.html.erb deleted file mode 100644 index ccceea1d..00000000 --- a/app/views/topics/showcard.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -
-
-

- <%= @topic.metacode.name %> -

- <%= @topic.metacode.name %> -
- - <%= @topic.name %> - -
- Added by: - - <%= @user.name %> - -
-
-

- <%= @topic.desc %> -

-
-
- - <%= @topic.link %> - -
-
diff --git a/config/routes.rb b/config/routes.rb index fe7301d5..d5bd31ba 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -10,8 +10,6 @@ ISSAD::Application.routes.draw do match 'maps/:id/savelayout', to: 'maps#savelayout', via: :put, as: :savelayout - match 'showcard/:id', to: 'items#showcard', via: :get, as: :showcard - resource :session resources :topics do