Learning Rails 3
Seiten
2012
O'Reilly Media, Inc, USA (Verlag)
978-1-4493-0933-6 (ISBN)
O'Reilly Media, Inc, USA (Verlag)
978-1-4493-0933-6 (ISBN)
Ready to learn Rails? Unlike most Rails books, Learning Rails is for web developers, and not for programmers. You'll start from the foundations of the Web you already know, and learn how to create something visible with Rails before reaching the more difficult database models and controller code. Learning Rails 3 covers the most recent developments.
Ready to learn Rails? Unlike most Rails books, Learning Rails is for web developers, and not for programmers. Rather than begin with the inner layers of a Rails web application - the models and controllers - this book approaches Rails development from the outer layer: the view side of an application. You'll start from the foundations of the Web you already know, and learn how to create something visible with Rails before reaching the more difficult database models and controller code. Each chapter includes exercises and review questions so you can test your understanding as you go.
Present content by building an application with a basic view and a simple controller, while learning Ruby along the way Build forms and process their results, progressing from simple to more complex Connect forms to models by setting up a database, and use Rails' Active Record to create code that maps to database structures Use Rails scaffolding to build applications from a view-centric perspective Add common web application elements such as sessions, cookies, and authentication Build applications that combine data from multiple tables Create simple but dynamic interfaces with Rails and Ajax Learning Rails 3 covers the most recent developments.
All you need to get started is HTML experience. Each chapter includes exercises and review questions to test your understanding as you go.
Ready to learn Rails? Unlike most Rails books, Learning Rails is for web developers, and not for programmers. Rather than begin with the inner layers of a Rails web application - the models and controllers - this book approaches Rails development from the outer layer: the view side of an application. You'll start from the foundations of the Web you already know, and learn how to create something visible with Rails before reaching the more difficult database models and controller code. Each chapter includes exercises and review questions so you can test your understanding as you go.
Present content by building an application with a basic view and a simple controller, while learning Ruby along the way Build forms and process their results, progressing from simple to more complex Connect forms to models by setting up a database, and use Rails' Active Record to create code that maps to database structures Use Rails scaffolding to build applications from a view-centric perspective Add common web application elements such as sessions, cookies, and authentication Build applications that combine data from multiple tables Create simple but dynamic interfaces with Rails and Ajax Learning Rails 3 covers the most recent developments.
All you need to get started is HTML experience. Each chapter includes exercises and review questions to test your understanding as you go.
- Present content by building an application with a basic view and a simple controller
- Build forms and process their results, progressing from simple to more complex
- Connect forms to models by setting up a database, and create code that maps to database structures
- Use Rails scaffolding to build applications from a view-centric perspective
- Add common web application elements such as sessions, cookies, and authentication
- Build applications that combine data from multiple tables
- Send and receive email messages from your applications
Simon St. Laurent is a web developer, network administrator, computer book author, and XML troublemaker living in Ithaca, NY. His books include XML: A Primer, XML Elements of Style, Building XML Applications, Cookies, and Sharing Bandwidth. He is a contributing editor to XMLhack.com and an occasional contributor to XML.com.
Edd Dumbill is Managing Editor of XML.com. He also writes free software, and packages Bluetooth-related software for the Debian GNU/Linux distribution. Edd is the creator of XMLhack and WriteTheWeb, and has a weblog called Behind the Times.
Chapter 1 Starting Up Ruby on Rails
- If You Run Windows, You’re Lucky
- Getting Started at the Command Line
- Starting Up Rails
- Test Your Knowledge
- Creating Your Own View
- What Are All Those Folders?
- Adding Some Data
- How Hello World Works
- Adding Logic to the View
- Test Your Knowledge
- I Want My CSS!
- Specifying Stylesheets
- Creating a Layout for a Controller
- Choosing a Layout from a Controller
- Sharing Template Data with the Layout
- Setting a Default Page
- Test Your Knowledge
- Getting Started, Greeting Guests
- Application Flow
- Keeping Track: A Simple Guestbook
- Finding Data with ActiveRecord
- Test Your Knowledge
- A First Look at Scaffolding
- REST and Controller Best Practices
- Examining a RESTful Controller
- Escaping the REST Prison
- Test Your Knowledge
- More Than a Name on a Form
- Generating HTML Forms with Scaffolding
- Form as a Wrapper
- Creating Text Fields and Text Areas
- Labels
- Creating Checkboxes
- Creating Radio Buttons
- Creating Selection Lists
- Dates and Times
- Creating Helper Methods
- Test Your Knowledge
- Without Validation
- The Original Model
- The Power of Declarative Validation
- Managing Secrets
- A Place on the Calendar
- Beyond Simple Declarations
- Test Your Knowledge
- Adding a Picture by Uploading a File
- Standardizing Your Look with Form Builders
- Test Your Knowledge
- Relationships
- Connecting Awards to Students
- Connecting Students to Awards
- Nesting Awards in Students
- Many-to-Many: Connecting Students to Courses
- What’s Missing?
- Test Your Knowledge
- What Migrations Offer You
- Migration Basics
- Inside Migrations
- Test Your Knowledge
- Creating Your Own Debugging Messages
- Raising Exceptions
- Logging
- Working with Rails from the Console
- The Ruby Debugger
- Test Your Knowledge
- Test Mode
- Setting Up a Test Database with Fixtures
- Unit Testing
- Functional Testing
- Integration Testing
- Beyond the Basics
- Test Your Knowledge
- Getting Into and Out of Cookies
- Storing Data Between Sessions
- Test Your Knowledge
- Installation
- Storing Identities
- Storing User Data
- Wiring OmniAuth into the Application
- Classifying Users
- More Options
- Test Your Knowledge
- Creating Routes to Interpret URIs
- Generating URIs from Views and Controllers
- Infinite Possibilities
- Test Your Knowledge
- Getting Started
- Sassy Style
- Making Everything Work Together
- Test Your Knowledge
- The Junk Drawer
- Test Your Knowledge
- Sending JavaScript to the Browser
- Simplifying with CoffeeScript
- Test Your Knowledge
- Sending Mail Messages
- Receiving Mail
- Test Your Knowledge
- Changing to Production Mode
- Deploying Is Much More Than Programming
- Joining the Rails Ecosystem
- How Ruby Works
- How Rails Works
- Getting Started with Classes and Objects
- Comments
- Variables, Methods, and Attributes
- Logic and Conditionals
- Tables of Data
- Databases, Tables, and Rails
- What Regular Expressions Do
- Starting Small
- The Simplest Expressions: Literal Strings
- Character Classes
- Escaping
- Modifiers
- Anchors
- Sequences, Repetition, Groups, and Choices
- Greed
- More Possibilities
- Speaking in Rails
Colophon
Zusatzinfo | illustrations |
---|---|
Verlagsort | Sebastopol |
Sprache | englisch |
Maße | 178 x 233 mm |
Gewicht | 640 g |
Themenwelt | Informatik ► Programmiersprachen / -werkzeuge ► Ruby |
Mathematik / Informatik ► Informatik ► Web / Internet | |
ISBN-10 | 1-4493-0933-X / 144930933X |
ISBN-13 | 978-1-4493-0933-6 / 9781449309336 |
Zustand | Neuware |
Haben Sie eine Frage zum Produkt? |
Mehr entdecken
aus dem Bereich
aus dem Bereich