Ruby on Rails For Dummies
, by Burd, Barry- ISBN: 9780470081204 | 0470081201
- Cover: Paperback
- Copyright: 1/10/2007
Since 1980, Dr. Burd has been a professor in the Department of Mathematics and Computer Science at Drew University in Madison, New Jersey. When he’s not lecturing at Drew University, Dr. Burd leads training courses for professional programmers in business and industry. He has lectured at conferences in the United States, Europe, Australia, and Asia. He is the author of several articles and books, including Java For Dummies, 4th Edition, and JSP: JavaServer Pages, both from Wiley Publishing, Inc.
Introduction | p. 1 |
How to Use This Book | p. 1 |
Conventions Used in This Book | p. 2 |
What You Don't Have to Read | p. 2 |
Foolish Assumptions | p. 3 |
How This Book Is Organized | p. 4 |
Nuts and Bolts | p. 4 |
Creating Code | p. 4 |
Real Rails | p. 5 |
The Part of Tens | p. 5 |
Icons Used in This Book | p. 5 |
Where to Go from Here | p. 6 |
Nuts and Bolts | p. 7 |
Welcome to the World of Ruby on Rails | p. 9 |
The Software Development Process | p. 11 |
Agility | p. 12 |
Databases and the World Wide Web | p. 12 |
Throwing frameworks at the problem | p. 13 |
Along Comes Ruby on Rails | p. 13 |
Why Ruby? | p. 14 |
Why Rails? | p. 17 |
Let's Get Going | p. 19 |
Installing the Software | p. 21 |
Six Pieces of Software | p. 22 |
Installing the Ruby Interpreter | p. 22 |
Testing the Ruby installation | p. 24 |
Troubleshooting the Ruby installation | p. 25 |
Installing Rails | p. 26 |
Installing Java | p. 27 |
Installing RadRails | p. 28 |
Creating a RadRails shortcut on your desktop | p. 30 |
Testing RadRails | p. 31 |
Troubleshooting the RadRails installation | p. 33 |
Configuring RadRails | p. 33 |
Installing MySQL | p. 36 |
Installing MySQL Administrator | p. 40 |
Testing your MySQL installation | p. 40 |
Troubleshooting your database connection | p. 41 |
Details on Rails | p. 47 |
Creating a Database | p. 48 |
Creating a New Ruby on Rails Project | p. 50 |
Running Your New Rails Project (Already!) | p. 53 |
Creating a Model | p. 55 |
Creating a Database Table | p. 58 |
Creating a Scaffold | p. 61 |
Using the New Web Interface | p. 63 |
Using RadRails | p. 67 |
Words, Words, Words | p. 67 |
What's inside a view or an editor? | p. 69 |
Understanding the big picture | p. 71 |
Some Common RadRails Tasks | p. 72 |
Changing the perspective | p. 72 |
Showing a view | p. 74 |
Using a wizard to create something | p. 76 |
Using the Generators view to create something | p. 78 |
Editing an existing file | p. 80 |
Running a Ruby program | p. 81 |
Visiting a URL | p. 82 |
Customizing RadRails | p. 83 |
Troubleshooting the Run of a Ruby Program | p. 84 |
Does your Ruby code have a syntax error? | p. 85 |
Does your Ruby code have a semantic error? | p. 85 |
Did you tell RadRails where to find a Ruby interpreter? | p. 86 |
Did you point RadRails to the correct location of the Ruby interpreter? | p. 86 |
Creating Code | p. 87 |
Ruby One's Day | p. 89 |
Hello, Again | p. 90 |
A glimpse of a Ruby method | p. 90 |
Variables and values | p. 91 |
Ruby strings | p. 92 |
Working with Values | p. 93 |
Displaying values | p. 94 |
Assigning values | p. 94 |
Going with the Flow | p. 95 |
Getting input from the keyboard | p. 96 |
Using keywords | p. 97 |
Flowing the other way | p. 98 |
Going with the glow (or glowing with the flow) | p. 98 |
Bunches of Things | p. 100 |
Arrays | p. 100 |
Hashes | p. 102 |
Using Methods | p. 104 |
Methods, methods everywhere | p. 106 |
Please pass the hash | p. 108 |
What's the symbolism? | p. 109 |
Ruby Two's Day | p. 113 |
Objects and Classes | p. 113 |
Creating objects | p. 115 |
Adding another file's code to your own file's code | p. 115 |
Classes, objects, and database tables | p. 116 |
Objects Have Methods | p. 117 |
Ruby's handy iterators | p. 118 |
Finding iterators where you least expect them | p. 121 |
Enhancing Classes | p. 122 |
Open classes | p. 123 |
Being selfish | p. 123 |
Defining subclasses | p. 124 |
Creating a Module | p. 127 |
Weaving the Web | p. 129 |
The Working of the Web | p. 129 |
The Web developer's point of view | p. 130 |
The Hypertext Transfer Protocol | p. 131 |
Web pages | p. 132 |
Your HTML Starter Kit | p. 134 |
Start tags | p. 136 |
End tags, empty tags, and paired tags | p. 137 |
If it feels good, do it | p. 138 |
Entities | p. 138 |
Comments and declarations | p. 139 |
HTML Elements | p. 140 |
Displaying images | p. 140 |
Using tables to align things | p. 142 |
Creating an HTML form | p. 144 |
Using form elements | p. 147 |
Real Rails | p. 153 |
Action-Packed Adventures | p. 155 |
Model/View/Controller | p. 155 |
Creating a controller and a view | p. 157 |
Why you shouldn't rename files | p. 159 |
The Rails Way of Life | p. 161 |
Convention over configuration | p. 161 |
Don't Repeat Yourself (DRY) | p. 162 |
Writing What You Want Where You Want It | p. 163 |
Sending text to the console | p. 163 |
The art of Web server redirection | p. 165 |
Making the controller do the work | p. 166 |
The Controller Shakes Hands with the View | p. 167 |
Using parameters | p. 169 |
Getting parameters from a form | p. 172 |
Dividing the Work of the View | p. 173 |
Creating and using a partial (a partial what?) | p. 175 |
A view's little helper | p. 176 |
Some Things You Can Do with Models | p. 177 |
A Web Site for Photos | p. 178 |
Programming with a Rails Model | p. 182 |
Using Active Record | p. 184 |
Requiring a gem | p. 185 |
Connecting to the database | p. 185 |
Displaying data | p. 187 |
Modifying a Database | p. 189 |
More Rails Programming Tricks | p. 192 |
Deleting rows | p. 193 |
Adding rows | p. 194 |
Finding rows | p. 196 |
Using SQL | p. 198 |
Using id numbers | p. 199 |
I've Been Working on the Rails Code | p. 201 |
Displaying an Image | p. 201 |
Creating code | p. 202 |
Understanding the code | p. 204 |
Passing photos from place to place | p. 207 |
Importing Files | p. 214 |
Importing files the easy way | p. 214 |
Importing files the geeky way | p. 216 |
Image Is Everything | p. 219 |
Enhancing Your Project's Code | p. 220 |
Follow the book's longest step list | p. 220 |
Know the flow | p. 226 |
Understanding the Enhanced Code | p. 228 |
Creating a database table | p. 228 |
Moving on to more code | p. 228 |
Creating a file input field | p. 228 |
Creating a Photo instance | p. 230 |
Reading the image bits | p. 230 |
Composing an image tag | p. 231 |
Sending image bits to the visitor's browser | p. 232 |
Whew! | p. 232 |
More Model Magic | p. 233 |
Blogging Your Dreams | p. 233 |
Validating the Visitor's Input | p. 235 |
Adding Comments | p. 237 |
Adding Keywords | p. 243 |
Connecting dreams with keywords | p. 244 |
How the Rails code does what it does | p. 251 |
Cool Things on Rails | p. 257 |
Using Ajax | p. 257 |
Refresh part of a page, not the entire page | p. 258 |
Incorporating Ajax into a Rails page | p. 258 |
Sending E-Mail | p. 263 |
Don't blame me if it doesn't work | p. 263 |
Rails mail | p. 264 |
Creating and Consuming Web Services | p. 269 |
How to avoid screen scraping | p. 270 |
Building a Web service using Ruby on Rails | p. 271 |
The Part of Tens | p. 277 |
Ten (Times Two) Great Web Sites | p. 279 |
Ten Ruby Sites | p. 279 |
Documentation | p. 279 |
Open source Ruby projects | p. 280 |
Starting points for Ruby resources | p. 280 |
Discussing Ruby | p. 280 |
A weekly challenge | p. 280 |
Add-ons for Ruby | p. 281 |
Meet people | p. 281 |
Write Ruby code on a desert island | p. 281 |
How to be multilingual | p. 281 |
Agile Development | p. 282 |
Ten Rails Sites | p. 282 |
Straight from the source's mouth | p. 282 |
Find a Web host | p. 282 |
Get hooked on RadRails | p. 283 |
Documentation | p. 283 |
Discuss Ruby on Rails | p. 283 |
A Rails-friendly operating system | p. 283 |
Read the latest news | p. 284 |
Steal some code | p. 284 |
Brush up on SQL | p. 284 |
The seminal Ajax document | p. 284 |
Ten Features That Set Ruby Apart | p. 285 |
Hashes | p. 285 |
Open Classes | p. 285 |
Duck Typing | p. 286 |
Modifiers | p. 287 |
Blocks | p. 287 |
Everything Is an Object | p. 288 |
Objects Might Have Their Own Methods | p. 289 |
Mixins | p. 289 |
Built-In Unit Testing | p. 290 |
Built-In Reflection | p. 291 |
Ten Pivotal Ruby on Rails Concepts | p. 293 |
Don't Repeat Yourself (DRY) | p. 293 |
Convention over Configuration | p. 294 |
Model/View/Controller (MVC) | p. 294 |
Agile Development | p. 294 |
Dynamic Discovery of a Database's Characteristics | p. 295 |
Object-Relational Mapping (ORM) | p. 295 |
Using Generators | p. 296 |
Create, Read, Update, and Delete (CRUD) | p. 296 |
Using Migrations | p. 296 |
Using Partials | p. 297 |
Ten Ways to Override Rails Defaults | p. 299 |
Overriding the Database Name | p. 300 |
Overriding a Database Table Name | p. 301 |
Overriding a Controller Name | p. 303 |
Overriding the Name of a Table's Primary Key | p. 304 |
Using Singular Nouns | p. 305 |
Creating Irregular Plurals | p. 307 |
Overriding a Default Layout | p. 308 |
Creating Additional Web Pages | p. 310 |
Modifying the Meanings of URLs | p. 311 |
Changing the Server Environment | p. 312 |
Index | p. 315 |
Table of Contents provided by Ingram. All Rights Reserved. |
The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.
Digital License
You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.
More details can be found here.