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
rails mootools_demo && cd mootools_demo git clone git://github.com/pointcom/mootools-on-rails.git vendor/plugins/mootools-on-rails rake mootools_on_rails:install ruby script/generate scaffold post title:string body:text published:boolean vi config/routes.rbActionController::Routing::Routes.draw do |map| MootoolsOnRails.routes vi app/views/layouts/posts.html.erb <%= stylesheet_link_tag 'scaffold' %> <%= javascript_include_tag :mootools %> rake db:migrate vi app/views/posts/index.html.erb <% add_event('link', 'click') do |page| page.alert('coucou div 2') end %> <%= content_tag(:a, "Click My Link", :id => 'link') %> ruby script/server
rails demo_vasco && cd demo_vasco ruby script/plugin install git://github.com/relevance/vasco.git或者cd vendor/plugins/ && git clone git://github.com/relevance/vasco.git && cd ../.. ruby script/generate scaffold post title:string body:text published:boolean rake db:migrate rake vasco:explore ruby script/server http://localhost:3000/vasco
【实 × 新 × 奇】http://www.lycom.de/ 最新报道Ruby语言、Rails框架、Ubuntu、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