Revert "removecomments"

This reverts commit 6ee1468ce3.
This commit is contained in:
Andreas Stephanides
2014-10-17 09:54:39 +02:00
parent 3a8f84d9b4
commit 699517fb56
19 changed files with 296 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ require File.expand_path('../boot', __FILE__)
require 'rails/all'
require File.expand_path('lib/like_voteable.rb')
require File.expand_path('lib/is_commentable.rb')
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line

View File

@@ -1,5 +1,5 @@
Fetsite::Application.routes.draw do
resources :comments
themes_for_rails
@@ -126,7 +126,11 @@ Fetsite::Application.routes.draw do
end
end
end
resources :comments do
collection do
get 'hide'
end
end
resources :home, :only=>[:index] do
get :search, :on => :collection
collection do