From 86020804c9c03ca29bd88427b2931bf1676c63bc Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Tue, 17 Mar 2015 09:42:04 +0800 Subject: [PATCH] ok --- app/controllers/discuss_demo_controller.rb | 27 ---------------------- app/helpers/discuss_demo_helper.rb | 2 -- app/views/discuss_demo/new.html.erb | 7 ------ app/views/discuss_demo/show.html.erb | 2 -- 4 files changed, 38 deletions(-) delete mode 100644 app/controllers/discuss_demo_controller.rb delete mode 100644 app/helpers/discuss_demo_helper.rb delete mode 100644 app/views/discuss_demo/new.html.erb delete mode 100644 app/views/discuss_demo/show.html.erb 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' %> -