| Seite | Position | Fehler | Korrektur |
|---|---|---|---|
| 046 | 2. Zeile | kompieleren | kompilieren |
| 046 | 4. Absatz | /.profile | ~/.profile |
| 050 | 2. Absatz | c:\Instant Rails\rails_apps |
c:\InstantRails\rails_apps |
| 061 | 1. Absatz | Strg + C | Strg + C oder Ctrl + C |
| 062 | 1. Zeile | Resource | Ressource |
| 081 | letztes Listing | attr_accessor name | attr_accessor :name |
| 081 | letztes Listing | guest2 = Guest.new fehlt | guest2 = Guest.new |
| 082 | 1. Listing | guest1 == guest2 => true |
guest1.name == guest2.name => true |
| 085 | 3./4. Absatz | apfel.name |
apfel.preis |
| 088 | 1. Listing | buch = Buch.newbuch.name = "Ruby on Rails"buch.preis = 39.90 |
buch = Buch.new("Ruby on Rails", 39.90) |
| 093 | 1. Listing, 7.Zeile | => "Das ist kein Zeilenumbruch \n" |
=> "Das ist kein Zeilenumbruch \\n" |
| 102 | 2. und 3. Listing | string.scan |
s.scan |
| 108 | 2. Zeile | => "abracadabra" |
=> "hossa" |
| 114 | 1. Listing | muster = /^5$/ |
@muster = /^\d{5}$/ @ |
| 114 | 2. Listing | muster = /^5$/ |
@muster = /^\d{5}$/ @ |
| 114 | 3. Listing | muster = /^5$/ |
@muster = /^\d{5}$/ @ |
| 114 | 4. Listing | muster = // |
muster = /\d/ |
| 115 | 1. Listing | muster = /^5$/ |
@muster = /^\d{5}$/ @ |
| 116 | letztes Listing | [a,b,c,d] |
["a","b","c","d"] |
| 116 | letztes Listing | (a,b,c,d) |
("a","b","c","d") |
| 117 | 1. Listing | [a,b,c,d] |
["a","b","c","d"] |
| 118 | 2. Listing | a.slice(1..3) |
a.slice(1,2,3) |
| 124 | 1. Listing | => 12 |
=> 4 |
| 127 | 1. Listing | @ a.delete("Januar") { “existiert nicht” } => "Januar"@ | @ a.delete("April") { “existiert nicht” } => “April” @ |
| 129 | 2. Listing, 4.Zeile | Zeile muss ergänzt werden: | puts “Element #{x} ist #{i}” |
| 129 | 3. Listing | p preise.map ... |
preise.map ... |
| 130 | 2. Listing | p products.any? ¦product¦ product.price < 1000 |
p products.any?{¦product¦ product.price < 1000} |
| 130 | 3. Listing | p products.all? ¦product¦ product.price < 1000 |
p products.all?{¦product¦ product.price < 1000} |
| 131 | 1. Absatz | Wenn Sie auf diese Art und Weise einen Hash erzeugen… | Wenn Sie, wie im ersten Beispiel gezeigt, einen Hash erzeugen… |
| 132 | 1. Listing | => "fehlender Wertname name" |
=> "fehlender Wert name" |
| 149 | Listing | rateting | rating |
| 149 | Listing, class Book | att r_accessor :title, :author |
attr_accessor :title, :author |
| 167 | 1. Listing | href="/public/stylesheets/global.css" |
href="/stylesheets/global.css" |
| 201 | 2.Absatz | In usneren | In unseren |
| 209ff | 2.Absatz | authentification | authentication |
| 228 | Automatisches form_for, 8. Zeile | EmployeesController | BookmarksController |
| 231 | Absatz to_xml | das HTML-Format… | Da das HTML-Format… |
| 249 | 3. Listing | create_table :contries | create_table :countries |
| 266 | vorletzter Punkt | Wir prüfe,… | Wir prüfen,… |
| 269 | letzte Zeile | Formulars, um… | Formular, um… |
| 271 | 2. Listing | post :create, :flight => \{ \} | post :create, :flight => { } |
| +282 | Abschnitt Installation | sudo gem install zentest | sudo gem install ZenTest |
| +276 | Test Methode test_should_format_dates_in_index |
2. Assert Methode ersetzen durch | assert_select 'td', '10.06.2008 17:10' |
| 316 | 3. Punkt | Ersellt… | Erstellt… |
| +322 | letzte Zeile | svn probedit | svn propedit |
| 353 | Abschnitt Formulare | Formulare ohne Bezug zu einem Models | Formulare ohne Bezug zu einem Model |
| 377 | 3. Listing | Department.find(:all).collect ¦d¦ [d.name, d.id] |
Department.find(:all).collect{¦d¦ [d.name, d.id]} |
| 378 | Letztes Listing | Department.find(:all).collect ¦d¦ [d.name, d.id] |
Department.find(:all).collect{¦d¦ [d.name, d.id]} |
| +435 | 2. Listing | cheapest.each ¦prod¦ puts “Produkt #prod.name kostet #prod.price EUR” |
cheapest.each {¦prod¦ puts “Produkt #{prod.name} kostet #{prod.price} EUR”} |
| 448 | letzte Zeile | Objeckt | Objekt |
| 452 | 1. Listing | clients.map(&:firtname) | clients.map(&:firstname) |
| 454 | Kasten | Mehr zum Thema Sicherheit… | Mehr zum Thema Sicherheit erfahren Sie in Kapitel 17 ab Seite 647 |
| 468 | 3. Zeile von unten | vom Typ :date |
vom Typ :date oder :datetime |
| 470 | 3. Zeile von unten | Typ Timestamp | Typ datetime |
| 472 | 3. Listing | :vorname, :vorname] | :vorname, :nachname] |
| 479 | 1. Listing, letzte Zeile | :conditions=>:countr_id=>germany.id) | :conditions=>{:country_id=>germany.id}) |
| 500 | letzter Abschnitt | ..Assoziation zu einem Model InternationalAirport | ..Assoziation zu einem Model RegionalAirport |
| 548 | letzte Zeile von 12.4 | hash.exept! | hash.except! |
| 563 | 1. Zeile | Da der HTML-Code…ausgegeben werden… | Da der HTML-Code…ausgegeben wird… |
| +586 | 1. Listing | format.html render :action => :show | format.html { render :action => :show } |
| +586 | 1. Listing | format.xml render :xml => @airport | format.html { render :xml => @airport } |
| 595 | 2. Absatz | ..nicht wegen einer Störung unerreichbar ist… | ..wegen einer Störung nicht erreichbar ist… |
| +607 | 3. Listing, 12. Zeile | browser_locale = http_accept_language[/[a-z]1,2/].to_sym | browser_locale = http_accept_language[/[a-z]{1,2}/].to_sym |
| +610 | Listing | fehlerhafte Ruby-Code Tags | zum korrigierten Code |
| 659 | 1. Listen-Punkt | BSD-Linux | Unix (freeBSD, Solaris, …) |
| 662 | Kasten | aptitutde | aptitude |
| 677 | vorletzter Absatz | deploy:clean | deploy:cleanup |
| 679 | Listing | Verzeichniss | Verzeichnis |
Wenn Sie auch Fehler gefunden haben, oder Ergänzungsvorschläge haben, würden wir uns sehr freuen, wenn Sie uns eine Nachricht über das Kontaktformular schicken könnten.
Wir bedanken uns u.a. bei den folgenden Lesern für die Korrekturen:
- Daniel Sperl
- Matthias Köhne
- Herbert Wesenauer
- Manfred Wohde
- Harald …
- Hendrik Gebhardt
- Tobias Adam
- Matthias Baumgart
- Kai W. Zimmermann
- Michael Roloff
- Sascha Karnatz