Screencast: Upgrade auf Rails 3 Teil 3

Im dritten und letzten Teil der Rails-3-Upgrade Serie zeigt Ryan wie Warnungen über veraltetete Funktionen und Probleme in der View gelöst werden.

 

Download:

Download(19.6 MB, 9:34)
Alternativer Download für iPod & Apple TV(17.3 MB, 9:34)

 

Resourcen:

 

Quellcode:

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
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
<!-- layouts/application.html.erb -->
<%= javascript_include_tag 'jquery', 'rails', 'application' %>
<%= csrf_meta_tag %>
...
<%= content_for?(:side) ? yield(:side) : render(:partial => 'shared/side') %>

Eingestellt am 16.08.2010 um 10:52

Kategorie: Tutorials

Be Sociable, Share!

Kommentare für diesen Artikel wurden geschlossen.

Suchen auf rubyonrails.de

Aktuelle Rails Version + Abhängigkeiten:

Gem rails-3.0.0
actionmailer (= 3.0.0, runtime)
actionpack (= 3.0.0, runtime)
activerecord (= 3.0.0, runtime)
activeresource (= 3.0.0, runtime)
activesupport (= 3.0.0, runtime)
bundler (~> 1.0.0, runtime)
railties (= 3.0.0, runtime)

Rails auf Rubyforge
Rails auf Github