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
【实 × 新 × 奇】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