diff options
| author | mo <mokha@cisco.com> | 2017-09-02 10:35:30 -0600 |
|---|---|---|
| committer | mo <mokha@cisco.com> | 2017-09-02 10:35:30 -0600 |
| commit | 9d2cadab1f5c7f8a5d0ab1f690c0d459172ea663 (patch) | |
| tree | ad0d9912b3e599f46d0efb8fadd71665521e3b67 | |
| parent | e4b2373b172d49afce8045d664080735b0ff9fb1 (diff) | |
remove tutorial tags index page.
| -rw-r--r-- | app/controllers/tutorial_tags_controller.rb | 4 | ||||
| -rw-r--r-- | app/views/tutorial_tags/index.html.erb | 8 | ||||
| -rw-r--r-- | app/views/tutorials/show.html.erb | 4 | ||||
| -rw-r--r-- | config/routes.rb | 2 |
4 files changed, 3 insertions, 15 deletions
diff --git a/app/controllers/tutorial_tags_controller.rb b/app/controllers/tutorial_tags_controller.rb index f12eb7e7..06efd762 100644 --- a/app/controllers/tutorial_tags_controller.rb +++ b/app/controllers/tutorial_tags_controller.rb @@ -1,8 +1,4 @@ class TutorialTagsController < ApplicationController - def index - @tags = Tutorial.tag_counts_on(:tags) - end - def show @tag = params[:id].downcase.gsub(/ /, '-') @tutorials = Tutorial. diff --git a/app/views/tutorial_tags/index.html.erb b/app/views/tutorial_tags/index.html.erb deleted file mode 100644 index 6dfdca8a..00000000 --- a/app/views/tutorial_tags/index.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -<% provide(:title, "Tag, you're it".html_safe) -%> -<div class="row-fluid"> - <div class="span12"> - <% tag_cloud(@tags, %w(btn-mini btn-small btn-large)) do |tag, css_class| %> - <%= link_to "#{tag.name} x #{tag.count}", tutorial_tag_path(tag.name), class: "#{css_class} btn" %> - <% end %> - </div> -</div> diff --git a/app/views/tutorials/show.html.erb b/app/views/tutorials/show.html.erb index e9cd6e38..381f414a 100644 --- a/app/views/tutorials/show.html.erb +++ b/app/views/tutorials/show.html.erb @@ -1,6 +1,6 @@ <%= provide(:search_path, tutorials_path) %> -<div class="row-fluid"> - <div class="span12"> +<div class="row"> + <div class="col"> <div class="thumbnail"> <img src="<%= @tutorial.image_url %>" /> <div class="caption"> diff --git a/config/routes.rb b/config/routes.rb index b9420cf3..61f597a3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -9,7 +9,7 @@ Cake::Application.routes.draw do resources :tutorials, only: [:index, :show] do get 'page/:page', action: :index, on: :collection end - resources :tutorial_tags, only: [:index, :show], path: :tt do + resources :tutorial_tags, only: [:show], path: :tt do member do get 'page/:page', action: :show end |
