欧美色欧美亚洲高清在线观看,国产特黄特色a级在线视频,国产一区视频一区欧美,亚洲成a 人在线观看中文

  1. <ul id="fwlom"></ul>

    <object id="fwlom"></object>

    <span id="fwlom"></span><dfn id="fwlom"></dfn>

      <object id="fwlom"></object>

      ruby on rails 創(chuàng)建一個博客項目

      時間:2019-05-15 00:38:45下載本文作者:會員上傳
      簡介:寫寫幫文庫小編為你整理了多篇相關(guān)的《ruby on rails 創(chuàng)建一個博客項目》,但愿對你工作學(xué)習(xí)有幫助,當(dāng)然你在寫寫幫文庫還可以找到更多《ruby on rails 創(chuàng)建一個博客項目》。

      第一篇:ruby on rails 創(chuàng)建一個博客項目

      控制臺創(chuàng)建一個博客項目

      rails new blog

      cd blog

      rails g scaffold post title:string text:text

      rails g model comment post_id:integer text:text

      rake db:migrate

      rails s

      測試:http://localhost:3000/posts

      修改index.html.erb

      blog/app/views/posts/index.html.erb 刪除原有的內(nèi)容,新的內(nèi)容如下:

      1.2.3.4.5.6.7.8.9.10.> 11.

      來源: http://blog.csdn.net/pan_tian/article/details/8763627

      <%= @post.title %>

      <%= @post.text %>

      <%= link_to “Back”, posts_path %> |

      <%= link_to “Edit”, edit_post_path(@post)%> |

      <%= link_to “Delete”,@post,:method => :delete, :confirm => “Are you sure?” %

      增加Comments項 繼續(xù)修改show.html.erb blog/app/views/posts/show.html.erb 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.>

      <%= @post.title %>

      <%= @post.text %>

      Comments

      <% @post.comments.each do |comment| %>

      <%= comment.text %>

      <%= time_ago_in_words comment.created_at %> ago

      <% end %>

      <%= form_for [@post,@post.comments.build] do |f| %>

      <%= f.text_area :text, :size => '40x10' %>

      <%= f.submit “Post Comment” %>

      <% end %>

      <%= link_to “Back”, posts_path %> |

      <%= link_to “Edit”, edit_post_path(@post)%> |

      <%= link_to “Delete”,@post,:method => :delete, :confirm => “Are you sure?” %23.

      1.2.修改blog/app/models/post.rb 增加

      has_many :comments

      修改blog/app/models/comment.rb 增加 belongs_to :post 修改blog/config/routes.rb

      1.2.3.resources :posts do

      resources :comments

      end

      這個時候Comment就出來了,但是如果提交comment,還會報錯,因為我們還沒寫comment的controller 打開一個新的命令行 D:Rubyprojects>cd blog

      D:Rubyprojectsblog>rails g controller comments create destroy

      打開新創(chuàng)建的blogappcontrollerscomments_controller.rb

      1.class CommentsController < ApplicationController 2.3.4.5.6.7.8.9.def create

      @post = Post.find(params[:post_id])@comment = @post.comments.build(comment_params)@comment.save

      redirect_to @post end

      def comment_params

      params.require(:comment).permit(:id, :text)end

      10.11.def destroy

      end

      12.13.end

      14.15.增加刪除comment功能

      修改blog/app/views/posts/show.html.erb(增加Delete Comment鏈接)1.2.3.4.5.

      <%= @post.title %>

      <%= @post.text %>

      Comments

      6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.ure?“ %> 24.<% @post.comments.each do |comment| %>

      <%= comment.text %>

      <%= time_ago_in_words comment.created_at %> ago

      <%= link_to ”Delete Comment“, [@post, comment], :method => :delete, :confirm => ”Are you sure?“ %>

      <% end %>

      <%= form_for [@post,@post.comments.build] do |f| %>

      <%= f.text_area :text, :size => '40x10' %>

      <%= f.submit ”Post Comment“ %>

      <% end %>

      <%= link_to ”Back“, posts_path %> |

      <%= link_to ”Edit“, edit_post_path(@post)%> |

      <%= link_to ”Delete“,@post,:method => :delete, :confirm => ”Are you s

      修改blogappcontrollerscomments_controller.rb class CommentsController < ApplicationController

      def create

      @post = Post.find(params[:post_id])

      @comment = @post.comments.build(comment_params)

      @comment.save

      redirect_to @post

      end

      def destroy

      @comment = Comment.find(params[:id])

      @comment.destroy

      redirect_to @comment.post

      end end

      def comment_params params.require(:comment).permit(:id, :text)end

      給你的blog添加ATOM feed

      修改blogappcontrollersposts_controller.rb def index @posts = Post.all

      respond_to do |format| format.html # index.html.erb format.json { render json: @posts } format.atom

      end end 修改blogappviewslayoutsapplication.html.erb header區(qū)域中添加下面的代碼,用于顯示Atom的圖標(biāo) <%= auto_discovery_link_tag :atom, “/posts.atom” %>

      一個博客就基本完成了。

      第二篇:play手把手教你創(chuàng)建一個博客項目-08.添加身份認證

      08.添加身份認證

      在上一節(jié)是,我們?yōu)閼?yīng)用程序添加了管理區(qū)域(administration area)功能,現(xiàn)在我們將在這些管理區(qū)域中插入一些身份認證功能。幸運的是,play已經(jīng)為這個功能準備了一個模塊,這個模塊叫Secure(安全)。

      在程序里允許使用Secure模塊

      在yabe/conf/application.conf文件里允許使用Secure模塊,并重啟程序: # Import the secure module module.secure=${play.path}/modules/secure 重啟后,play應(yīng)用在控制臺顯示模塊已經(jīng)成功啟動的相關(guān)信息。

      Secure模塊帶有一系列默認的路由,需要在yabe/conf/routes里引入(或定義自己的路由也行): # Import Secure routes * / module:secure 保護admin(此處指需要身份認證的)控制器

      安全模塊提供了一個controllers.Secure控制器,它聲明了所有可能用到的攔截器。當(dāng)然,我們可以以繼承這個控制器的方法獲得其攔截器,但是java只允許單繼承,這就導(dǎo)致了一些問題。

      為了避免單繼承帶來的限制,我們可以用@With來注釋admin控制器,以告訴play去調(diào)用相應(yīng)的攔截器:

      package controllers;

      import play.*;import play.mvc.*;

      @With(Secure.class)public class Posts extends CRUD { } 同樣用于Comments, Users和Tags控制器。

      Now if you try to access any admin action, you should get a log-in page: 事實上,現(xiàn)在你就可以試著輸入任意username/password對看看,它其實并沒有對身份進行認證。

      定制身份認證處理

      應(yīng)用程序必須提供一個controllers.Secure.Security實例來定制身份認證處理。通過繼承這個類來創(chuàng)建我們自己版本的Secure類,我們可以指定如何對用戶身份進行認證。

      創(chuàng)建yabe/app/controllers/Security.java文件,重寫authenticate()方法: package controllers;

      import models.*;

      public class Security extends Secure.Security {

      static boolean authenticate(String username, String password){ return true;} } 既然我們已經(jīng)擁有了User對象,那么就非常容易實現(xiàn)這個方法: static boolean authenticate(String username, String password){ return User.connect(username, password)!= null;} 現(xiàn)在打開http://localhost:9000/logout進行登錄嘗試,用戶名和密碼在initial-data.yml文件里定義,比如bob@gmail.com/secret。

      重構(gòu)管理區(qū)域(administration area)

      我們之前已經(jīng)使用CRUD模塊來實現(xiàn)管理區(qū)域,但是這個管理區(qū)域仍然沒有集成到博客UI里,接下來我們將在一個新的管理區(qū)域上開始工作。這個新的管理區(qū)域允許每個作者訪問他自己的博客。而超級用戶則繼續(xù)使用完整功能的管理區(qū)域。

      接下來,讓我們?yōu)楣芾聿糠謩?chuàng)建一個新Admin控制器: package controllers;

      import play.*;import play.mvc.*;

      import java.util.*;

      import models.*;

      @With(Secure.class)public class Admin extends Controller {

      @Before static void setConnectedUser(){ if(Security.isConnected()){ User user = User.find(“byEmail”, Security.connected()).first();renderArgs.put(“user”, user.fullname);} }

      public static void index(){ render();} } 重構(gòu)路由定義yabe/conf/routes: # Administration GET /admin/? Admin.index * /admin module:crud 請注意路由的順序,第一行就匹配了的http請求相應(yīng)的action會率先使用,同時忽略在其之下的路由配置。也就是說Admin控制器必須位于第二行之上,第二條路由將匹配所有其他的/admin請求,用于調(diào)用CRUD模塊頁面,否則/admin/將映射到CRUD.index而不是Admin.index。

      現(xiàn)在把yabe/app/views/main.html模塊里的 ‘Log in to write something’文本修改到Admin.index控制器action:

      最后一件事就是為yabe/app/views/Admin/index.html模板文件完成所有的填充工作,讓我們從簡單的開始: Welcome ${user}!現(xiàn)在回到主頁,單擊 ‘Log in to write something’鏈接就回進入樣的管理區(qū)域頁面: 非常好!但是既然我們已經(jīng)有幾個管理區(qū)域的頁面,那么,我們就應(yīng)該有一個超級模板以重用代碼,讓我們創(chuàng)建一個yabe/app/views/admin.html模板: Administration

      #{get 'moreStyles' /}

      yabe.administration

      第三篇:play手把手教你創(chuàng)建一個博客項目-03.構(gòu)建第一個頁面

      03.構(gòu)建第一個頁面

      之前,我們已經(jīng)編寫好了數(shù)據(jù)模型,是時候為應(yīng)用程序創(chuàng)建第一個頁面了。這個頁面只顯示當(dāng)前發(fā)表的博文完整內(nèi)容,同時顯示之前發(fā)表的博文列表。下面是該頁面結(jié)構(gòu)示意圖:

      在啟動時加載默認數(shù)據(jù)

      事實上,在編寫第一個頁面之前,我們還需要做一些工作。在一個沒有任何測試數(shù)據(jù)的頁面上進行工作并不太好,你甚至不能進行任何測試。

      為博客程序注入測試數(shù)據(jù)的一條途徑就是在應(yīng)用程序啟動時加載一個固定文件。為了實現(xiàn)這個目的,我們將創(chuàng)建一個引導(dǎo)任務(wù)(Bootstrap Job)。一個play job 任務(wù)就是一在沒有任何http請求的情況下執(zhí)行一些特定工作,比如在應(yīng)用程序啟動時或指定時間間隔時使用CRON任務(wù)。

      接下來,讓我們創(chuàng)建/yabe/app/Bootstrap.java job文件,使用Fixtures加載一系列默認數(shù)據(jù):

      import play.*;import play.jobs.*;import play.test.*;

      import models.*;

      @OnApplicationStart public class Bootstrap extends Job {

      public void doJob(){ // 檢查數(shù)據(jù)庫是否為空 if(User.count()== 0){ Fixtures.loadModels(“initial-data.yml”);} } } 在這里,我們使用@OnApplicationStart來注釋這個Job,用于告訴play我們打算在應(yīng)用程序啟動時同步運行這個任務(wù)。

      事實上,在DEV和PROD模式下,這個任務(wù)的運行情況有所不同。在DEV模式下,play會等待第一個請求達到時才運行任務(wù)。因此這個任務(wù)會在第一個請求到達時才同步執(zhí)行,也就是說,如果這個任務(wù)失敗,你會在瀏覽器里看到錯誤消息。在PROD模式里,這個任務(wù)將會在應(yīng)用程序啟動時就執(zhí)行(與play run命令同步),以防止應(yīng)用程序在啟動時發(fā)生錯誤。

      你必須在yabe/conf/下創(chuàng)建一個initial-data.yml文件。當(dāng)然,你也可以重用我們之前在data.yml里定義的內(nèi)容。

      博客主頁

      這次,我們將真正開始編寫主頁代碼。

      還記得程序的第一個頁面是如何顯示的嗎?首先是在routes文件里指定/ URL 將調(diào)用controllers.Application.index()action方法,然后這個index()調(diào)用render()方法渲染/yabe/app/views/Application/index.html模板。我們將保留這些組件,但是我們會在其中添加代碼來加載博文列表并顯示。打開/yabe/app/controllers/Application.java控制器并修改index()action來加載博文列表:

      package controllers;

      import java.util.*;

      import play.*;import play.mvc.*;

      import models.*;

      public class Application extends Controller {

      public static void index(){ Post frontPost = Post.find(“order by postedAt desc”).first();List

      olderPosts = Post.find(“order by postedAt desc”).from(1).fetch(10);render(frontPost, olderPosts);} } 看到我們是如何向render方法傳遞對象的嗎?通過這種方式,我們就可以在模板里使用相同的名稱來訪問這些對象了。在上面的代碼里,我們在模板里就可以直接使用變量frontPost和olderPosts。

      打開/yabe/app/views/Application/index.html并修改,用于顯示這些對象: #{extends 'main.html' /} #{set title:'Home' /}

      #{if frontPost}

      ${frontPost.title}

      by ${frontPost.author.fullname} ${frontPost.postedAt.format('MMM dd')} ?|? ${frontPost.comments.size()?: 'no'} comment${frontPost.comments.size().pluralize()} #{if frontPost.comments} , latest by ${frontPost.comments[-1].author} #{/if}

      第四篇:play手把手教你創(chuàng)建一個博客項目-09.創(chuàng)建定制編輯區(qū)域

      09.創(chuàng)建定制編輯區(qū)域

      在之前的教程中,我們已經(jīng)創(chuàng)建一個管理區(qū)域(administration area),并準備好了‘My posts’部分。這個頁面將為每位作者提供一個屬于他自己博文的列表,并且可以對這些博文進行編輯或創(chuàng)建新的博文。

      我們可以重用CRUD模塊作為這個頁面的基礎(chǔ),但在這里,我們將以此為基礎(chǔ)(scratch,起跑線,基礎(chǔ))創(chuàng)建一些東西,我們需要在這些屏幕里提供許多個性化的東西。

      從用戶博文列表開始

      在這里,我們只需得到并顯示當(dāng)前登錄用戶的博文。非常簡單,讓我們開始增強Admin.index action的功能: public static void index(){ String user = Security.connected();List

      posts = Post.find(“author.email”, user).fetch();render(posts);} 并且完成yabe/app/views/Admin/index.html模板: #{extends 'admin.html' /}

      Welcome ${user}, you have written ${posts.size()?: 'no'} ${posts.pluralize('post', 'posts')} so far

      #{list items:posts, as:'post'}

      ${post.title}

      #{/list}

      + write a new post

      第一個屏幕就準備好了: 接著寫‘寫一篇新博文’頁面

      我們將創(chuàng)建一個窗體來實現(xiàn)創(chuàng)建一篇新博文。通常情況下,在窗體操作時你需要兩個actions:一個用于顯示窗體,另一個用于處理窗體提交的信息。讓我們創(chuàng)建這個新的Admin.form和Admin.save actions,以用于顯示和處理窗體提交信息:

      在abe/conf/routes里添加如下路由:

      GET /admin/new Admin.form POST /admin/new Admin.save 接著在Admin.java控制器里添加form()和save()actions: public static void form(){ render();}

      public static void save(){ // Not implemented yet } 接著,你就必須創(chuàng)建yabe/app/views/Admin/form.html模板:

      #{extends 'admin.html' /}

      Write, a new post

      #{form @save()}

      #{ifErrors}

      Please correct these errors.

      #{/ifErrors}

      #{field 'title'} #{error 'post.title' /} #{/field}

      #{field 'content'} #{error 'post.content' /} #{/field}

      #{field 'tags'} #{/field}

      #{/form} 最后編輯yabe/app/views/Admin/index.html模板來鏈接到 Write a new post 按鈕到這個窗體:

      ...

      + write a new post

      ...檢測一下結(jié)果: 接下來,我們必須完成Admin.save action,以用于處理當(dāng)前窗體提交的數(shù)據(jù)。action將創(chuàng)建一個新的Post對象,把tag(特征)列表轉(zhuǎn)換到真實的Tag對象集合,驗證所有的字段并存儲他們。如果有任何問題發(fā)生,那么還能夠重新顯示窗體,并標(biāo)出錯誤位置:

      public static void save(String title, String content, String tags){ // Create post User author = User.find(“byEmail”, Security.connected()).first();Post post = new Post(author, title, content);// Set tags list for(String tag : tags.split(“s+”)){ if(tag.trim().length()> 0){ post.tags.add(Tag.findOrCreateByName(tag));} } // Validate validation.valid(post);if(validation.hasErrors()){ render(“@form”, post);} // Save post.save();index();} 在這里,我們使用render(“@form”)作為render(“Admin/form.html”)的快捷方式,它只告訴play去使用窗體action的默認模板。測試下看看!

      為正在編輯的Posts重用這些填充數(shù)據(jù)

      我們已經(jīng)定義了HTML窗體并且讓Java action能夠創(chuàng)建一個新的博客Post,但是我們同時也需要允許編輯存在的博文,因此我們可以很容易地重用相同的代碼,使我們在編輯現(xiàn)有博文時的工作量盡量減少: 首先我們需要讓Admin.form找回存在的Post: public static void form(Long id){ if(id!= null){ Post post = Post.findById(id);render(post);} render();} 正如你所看到的一樣,我們使之成為可選項(通過id!=null),因此當(dāng)id參數(shù)已經(jīng)填值后,同樣的action將用于找回存在的博文。因此,我們現(xiàn)在可以把主屏幕的博文列表鏈接到編輯窗體了。編輯yabe/app/views/Admin/index.html模板:

      #{extends 'admin.html' /}

      Welcome ${user}, you have written ${posts.size()?: 'no'} ${posts.pluralize('post', 'posts')} so far

      #{list items:posts, as:'post'}

      ${post.title}

      #{/list}

      + write a new post

      非常好,很容易就實現(xiàn)了,但這里還有一個小問題。如果你看一下通過Router為這些鏈接生成的真實的URL,你就會發(fā)現(xiàn)如下樣式的URL: /admin/new?id=3 它們能正常工作,但是并不太漂亮。OK,讓我們對其進行修改,如果id參數(shù)提交上來,我們將使用一個不同的URL范示,路由定義如下: GET /admin/myPosts/{id} Admin.form GET /admin/new Admin.form 正如你看到的一樣,我們在舊的路由之前定義了這些路由,因此它們具有更好的優(yōu)先級。這也就是說,如果一個id參數(shù)被提交,play將率先使用這個URL范示,如果沒有提交id參數(shù),那么play將繼續(xù)使用舊的路由。刷新My posts頁面看看更賈漂亮的URL鏈接效果。

      接下來我們需要修改yabe/app/views/Admin/form.html模板,使其更好: #{extends 'admin.html' /}

      #{ifnot post?.id}

      Write, a new post

      #{/ifnot} #{else}

      Edit, this post

      #{/else}

      #{form @save(post?.id)}

      #{ifErrors}

      Please correct these errors.

      #{/ifErrors}

      #{field 'title'} #{error 'post.title' /} #{/field}

      #{field 'content'} #{error 'post.title' /} #{/field}

      #{field 'tags'} #{/field}

      #{/form} 正如你看到的一樣,我們已經(jīng)更新窗體目的action,以方便添加博文ID作為第一個action參數(shù)。因此當(dāng)博文擁有一個id字段集時(意思是博文在系統(tǒng)里已經(jīng)存在),窗體將發(fā)送到Admin.save action進行處理。接下來我們可以修改save()方法來處理創(chuàng)建與編輯兩種情況:

      public static void save(Long id, String title, String content, String tags){ Post post;if(id == null){ // Create post User author = User.find(“byEmail”, Security.connected()).first();post = new Post(author, title, content);} else { // Retrieve post post = Post.findById(id);// Edit post.title = title;post.content = content;post.tags.clear();} // Set tags list for(String tag : tags.split(“s+”)){ if(tag.trim().length()> 0){ post.tags.add(Tag.findOrCreateByName(tag));} } // Validate validation.valid(post);if(validation.hasErrors()){ render(“@form”, post);} // Save post.save();index();} 使用和之前同樣的技巧,讓URL更加完美,如果id參數(shù)存在,我們就使用優(yōu)先路由:

      POST /admin/myPosts/{id} Admin.save POST /admin/new Admin.save 工作全部完成!現(xiàn)在我們使用同一樣action就實現(xiàn)了創(chuàng)建新博文與編輯舊博文的功能,同時完成了管理區(qū)域administration area)的編程工作!

      第五篇:play手把手教你創(chuàng)建一個博客項目-04.顯示并發(fā)表評論

      04.顯示并發(fā)表評論

      博客的主頁已經(jīng)搞定,接下來,我們將編寫博文的詳細內(nèi)容頁面。這個頁面將顯示當(dāng)前博文的所有評論,頁面還將包括一個用于發(fā)表新評論的窗體。

      創(chuàng)建 ‘show’ action

      為了顯示博文的詳細頁面,我們需要在Application控制器里創(chuàng)建一個新的action方法,這個新的action叫做show(): public static void show(Long id){ Post post = Post.findById(id);render(post);} 你可以看到,這個action非常簡單。我們在方法簽名里聲明了一個Long類型的id參數(shù)用于自動從http請求的id變量里得到id值。這個參數(shù)會從HTTP的請求字符串、URL路徑或窗體里獲得

      如果我們試著從http請求里傳遞一個錯誤的id值時,id變量值將為null,這時play將自動添加一個驗證錯誤秋errors容器(變量)里。

      這個action將用/yabe/app/views/Application/show.html模板進行顯示: #{extends 'main.html' /} #{set title:post.title /}

      #{display post:post, as:'full' /} 由于我們在之前已經(jīng)編寫了display標(biāo)簽,因此在這個頁面的編碼就非常簡單了。

      為詳細頁面添加鏈接

      在display標(biāo)簽里,我們讓所有的鏈接為空(使用#)。是時候讓這些鏈接指向Application.show action了。在play里,你可以很容易在一個模板里使用@{...}注釋構(gòu)建鏈接,這個語法使用了路由的“URL反向查找”功能,用于反向查找指定action的URL。

      打開/yabe/app/views/tags/display.html標(biāo)簽并修改: ?

      ${_post.title}

      ?

      刷新主頁,單擊博文標(biāo)題以顯示博文內(nèi)容。非常好,但是這個頁面缺少一個返回主頁的鏈接。OK,讓我們打開/yabe/app/views/main.html模板,完成標(biāo)題的鏈接:

      ?

      About this blog

      ${blogTitle}

      ${blogBaseline}

      下載ruby on rails 創(chuàng)建一個博客項目word格式文檔
      下載ruby on rails 創(chuàng)建一個博客項目.doc
      將本文檔下載到自己電腦,方便修改和收藏,請勿使用迅雷等下載。
      點此處下載文檔

      文檔為doc格式


      聲明:本文內(nèi)容由互聯(lián)網(wǎng)用戶自發(fā)貢獻自行上傳,本網(wǎng)站不擁有所有權(quán),未作人工編輯處理,也不承擔(dān)相關(guān)法律責(zé)任。如果您發(fā)現(xiàn)有涉嫌版權(quán)的內(nèi)容,歡迎發(fā)送郵件至:645879355@qq.com 進行舉報,并提供相關(guān)證據(jù),工作人員會在5個工作日內(nèi)聯(lián)系你,一經(jīng)查實,本站將立刻刪除涉嫌侵權(quán)內(nèi)容。

      相關(guān)范文推薦

        play手把手教你創(chuàng)建一個博客項目-02.迭代編寫數(shù)據(jù)模型代碼

        02.迭代編寫數(shù)據(jù)模型代碼 下面,我們將開始為我們的博客引擎寫一個數(shù)據(jù)模型。 JPA介紹 在play應(yīng)用程序(事實上也包括所有設(shè)計良好的應(yīng)用程序)里,模型層是最為核心的地方。play是......

        play手把手教你創(chuàng)建一個博客項目-10.完整的應(yīng)用程序測試

        10.完整的應(yīng)用程序測試 現(xiàn)在,我們已經(jīng)結(jié)束了博客引擎的編碼工作,但對項目來說還沒有完成,為了讓我們的代碼能夠完全正確的工作,我們還需要對項目進行測試。 當(dāng)然,我們之前已經(jīng)為y......

        班組博客創(chuàng)建

        為深入貫徹落實“龍舟精神”,進一步夯實公司發(fā)展基石,提升班組基礎(chǔ)管理水平,落實集團公司和省公司關(guān)于加強班組文化建設(shè)的要求,自8月份起,公司在全區(qū)已正式啟動“龍舟”班組創(chuàng)建......

        play手把手教你創(chuàng)建一個博客項目-06.增加特征(tagging)支持[5篇模版]

        06.增加特征(tagging)支持 我們的博客上線運行后將包含非常多的博文,那么,要想快速找到某篇博文將越來越困難。為了能按主題進行分類,我們將為博客增加tagging支持。 創(chuàng)建Tag(以下......

        play手把手教你創(chuàng)建一個博客項目-07.使用CRUD實現(xiàn)基礎(chǔ)的模型管理

        07.使用CRUD設(shè)置一個基本的管理區(qū)域 當(dāng)前,我們還沒有在博客UI里為創(chuàng)建一篇新的博文或適當(dāng)?shù)脑u論提供方法。Play提供了一個開箱即用(out of the box)的CRUD模塊,用于快速生成一個......

        創(chuàng)建外國語學(xué)部博客策劃書

        創(chuàng)建外國語學(xué)部博客策劃書 一、建立背景: 1.學(xué)校的校園生活日益豐富多彩,信息部作為負責(zé)校園內(nèi)外信息交流傳播的一個重要部門,對信息轉(zhuǎn)播媒介的要求日益提高,以傳統(tǒng)的校園門戶網(wǎng)......

        班級管理:創(chuàng)建班級博客-班級管理[精選]

        班級管理:創(chuàng)建班級博客在博客越來越普及的今天,它成為教師互相學(xué)習(xí)、互相交流的良好平臺,它更是班主任管理班級工作及整理、宣傳班級的好幫手。博客簡單易用,"零"技術(shù)障礙,將為我......

        個人博客總結(jié)系統(tǒng)項目總結(jié)

        個人博客總結(jié)系統(tǒng)項目總結(jié) 軟件描述 軟件的中文名字:個人博客 英文名字:My blog 綜合評估 在開發(fā)這個軟件的過程中,遇到了很多的困難,不是這個軟件不會用就是那個軟件不會用,還......