rails textile_toolbar_demo && cd textile_toolbar_demo ruby script/plugin install git://github.com/pelargir/textile_toolbar.gitrake textile_toolbar:install ruby script/generate scaffold post title:string body:text published:boolean vi app/views/posts/edit.html.erb <%#= f.text_area :body %> <%= f.textile_area :body, :rows => 5, :cols => 20 %> vi app/views/layouts/posts.html.erb <%= stylesheet_link_tag 'scaffold' %> <%= javascript_include_tag :defaults %> <%= javascript_include_tag "textile_toolbar.js" %> rake db:migrate && rake db:fixtures:load ruby script/server # http://localhost:3000/posts/<post.id>/edit
【实 × 新 × 奇】http://www.lycom.de/ 最新报道Ruby语言,Rails框架,MacOSX和软件技术信息 Aardvark RSS
道喜技术日记
订阅 full-text RSS 或者 comments RSS.
Interesting links can be found at del.icio.us or by subscribing to my del.icio.us feed
Powered by SimpleLog
Comments
There are 0 comments on this post. Post yours →
Post a comment
Required fields in bold.