From f94222cac7b3d270d46c25331e309270e127c6cf Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Tue, 17 Mar 2015 09:40:45 +0800 Subject: [PATCH] html --- app/views/discuss_demos/new.html.erb | 7 +++++++ app/views/discuss_demos/show.html.erb | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 app/views/discuss_demos/new.html.erb create mode 100644 app/views/discuss_demos/show.html.erb diff --git a/app/views/discuss_demos/new.html.erb b/app/views/discuss_demos/new.html.erb new file mode 100644 index 000000000..8cf1630e2 --- /dev/null +++ b/app/views/discuss_demos/new.html.erb @@ -0,0 +1,7 @@ +<%= javascript_include_tag src='/assets/kindeditor/kindeditor' %> +

新建文章

+<%= form_for @discuss_demo,:url => {:controller => 'discuss_demos',:action => "show",:id =>@discuss_demo.id, :method => :put} do |f| %> + <%= f.text_field :title %> + <%= f.kindeditor :body ,:owner_id => @discuss_demo.id%> + <%= f.submit :value=> '提交' %> +<% end %> \ No newline at end of file diff --git a/app/views/discuss_demos/show.html.erb b/app/views/discuss_demos/show.html.erb new file mode 100644 index 000000000..4b6bd3cee --- /dev/null +++ b/app/views/discuss_demos/show.html.erb @@ -0,0 +1,3 @@ +

<%= @discuss_demo.title %>

+<%= textAreailizable @discuss_demo.body %> +<%=link_to "返回首页",discuss_demos_path %> \ No newline at end of file