diff --git a/app/controllers/discuss_demo_controller.rb b/app/controllers/discuss_demo_controller.rb deleted file mode 100644 index 50f527b39..000000000 --- a/app/controllers/discuss_demo_controller.rb +++ /dev/null @@ -1,27 +0,0 @@ -class DiscussDemoController < ApplicationController - def index - @discuss_demo_list = DiscussDemo.order("created_at desc").page(params[:page] || 1).per(10) - end - - def new - - end - - def create - discuss_demo = DiscussDemo.new(:title => params[:discuss_demo][:title],:body =>params[:discuss_demo][:body]) - discuss_demo.save! - redirect_to :controller=>'discuss_demo',:action => 'show',:id => discuss_demo.id - end - - def update - - end - - def delete - - end - - def show - @discuss_demo = DiscussDemo.find(params[:id]) - end -end diff --git a/app/helpers/discuss_demo_helper.rb b/app/helpers/discuss_demo_helper.rb deleted file mode 100644 index 4fedaa1a9..000000000 --- a/app/helpers/discuss_demo_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module DiscussDemoHelper -end diff --git a/app/views/discuss_demo/new.html.erb b/app/views/discuss_demo/new.html.erb deleted file mode 100644 index 9b75805d8..000000000 --- a/app/views/discuss_demo/new.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -<%= javascript_include_tag src='/assets/kindeditor/kindeditor' %> -