From c77c1a81a4ebd41d7adeeba72fccc43f43e541a1 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Tue, 17 Mar 2015 09:41:10 +0800 Subject: [PATCH] html --- app/views/{discuss_demo => discuss_demos}/index.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename app/views/{discuss_demo => discuss_demos}/index.html.erb (69%) diff --git a/app/views/discuss_demo/index.html.erb b/app/views/discuss_demos/index.html.erb similarity index 69% rename from app/views/discuss_demo/index.html.erb rename to app/views/discuss_demos/index.html.erb index f9bee9b54..b24937357 100644 --- a/app/views/discuss_demo/index.html.erb +++ b/app/views/discuss_demos/index.html.erb @@ -6,10 +6,14 @@ <%= truncate(e.title,:length => 50) %> - <%= textAreailizable truncate(e.body,:length => 500) %>   + <%= truncate(e.body,:length => 50) %>   - <%= link_to '查看文章',{:controller => 'discuss_demo',:action => 'show',:id=>e.id} %> + <%= link_to '查看文章',{:controller => 'discuss_demos',:action => 'show',:id=>e.id} %> + + +    + <%= link_to '删除文章',discuss_demo_path(e.id), :method => :delete,:confirm => l(:text_are_you_sure) %>