· 1 min read
Screencast: Upgrade auf Rails 3 Teil 3
Download:
Download(19.6 MB, 9:34) Alternativer Download für iPod & Apple TV(17.3 MB, 9:34)
Resourcen:
Quellcode:
[bash] rake spec rails plugin install git://github.com/rails/dynamic_form.git bundle install rm public/index.html rm public/images/rail.png ls script rm script/server [/bash]
[ruby] gem “thinking-sphinx”, :require => ‘thinking_sphinx’, :git => “git://github.com/freelancing-god/thinking-sphinx.git”, :branch => “rails3”
# helpers def textilize(text) Textilizer.new(text).to_html.html_safe unless text.blank? end
def title(page_title, show_title = true) content_for(:title, page_title.to_s) @show_title = show_title end [/ruby]
[html] <%= javascript_include_tag ‘jquery’, ‘rails’, ‘application’ %> <%= csrf_meta_tag %> … <%= content_for?(:side) ? yield(:side) : render(:partial => ‘shared/side’) %> [/html]