Skip to Content
Ruby on Rails For Dummies®
book

Ruby on Rails For Dummies®

by Barry Burd
January 2007
Beginner
330 pages
6h 52m
English
Wiley
Content preview from Ruby on Rails For Dummies®

Chapter 12. More Model Magic

In This Chapter

  • Validating input

  • Creating relationships between database tables

  • Creating forms with check boxes, drop‐down lists, and more

My next book is entitled Lucid Dreaming For Dummies. The book is about dreams in which I know that I'm dreaming.

In one chapter, I can't pay the check at a fancy restaurant. Instead of becoming upset, I remind myself that the restaurant isn't real, and that if I wake up, I'll avoid any possible embarrassment.

In another chapter, I walk into a crowded room. I tell everyone to leave immediately because they're in my dream and they don't belong there.

In yet another, I ask someone what it's like to be a character in my dream. He replies that he doesn't know because he's not a real person. I remind him that he's part of my mind, so I can answer the question on his behalf. He challenges me to do so. I become angry. I decide that in future dreams, I'll be giving my characters much less independence.

The list of good chapters goes on and on. Strangely enough, Wiley Publishing hasn't yet approved the project.

Blogging Your Dreams

Every good book comes with a good Web site. So to accompany my Lucid Dreaming For Dummies book, I have a site on which people can post descriptions of their dreams. In an unusual moment of cleverness, I named the site TextfieldOfDreams.com.

Using Ruby on Rails, you can re‐create the TextfieldOfDreams site. Follow the usual steps in creating a Rails application. (For details, see Chapter 3.) In this chapter's ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Ruby on Rails: Up and Running

Ruby on Rails: Up and Running

Bruce Tate, Curt Hibbs
Ruby on Rails® Bible

Ruby on Rails® Bible

Timothy Fisher
Learning Rails 5

Learning Rails 5

J. Mark Locklear, Eric J Gruber, Barnabas Bulpett

Publisher Resources

ISBN: 9780470081204Purchase book