Beginning Ruby on Rails
-
Author:
-
Subject:
-
Published by:John Wiley & Sons Inc (US)
-
Published:10/11/2006
-
Price:$52.99
- < Buy this book >
You will find a thorough introduction to both Ruby and Rails in this book. You'll get the easy instructions for acquiring and installing both; understand the nature of conditionals, loops, methods, and blocks; and become familiar with Ruby's classes and objects. You'll learn to build Rails applications, connect to databases, perform necessary testing, and put the whole thing together to create real-world applications such as shopping carts and online catalogs--apps you can actually use right away.
What you will learn from this book
* How to install and use Ruby and Rails
* Object-oriented programming with Ruby
* Rails fundamentals and how to create basic online applications
* How to work with HTML controls, use models in Rails applications, and work with sessions
* Details on working with databases and creating, editing, and deleting database records
* Methods for handling cookies and filters and for caching pages
* How to connect Rails with Ajax
Who this book is for
This book is for anyone who wants to develop online applications using Ruby and Rails. A basic understanding of programming is helpful; some knowledge of HTML is necessary.
Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.
Biography
Table of Contents
Introduction.
Chapter 1: Welcome to Ruby.
Creating a First Web Application.
Getting Started with Ruby.
Checking the Ruby Documentation.
Working with Numbers in Ruby.
Working with Strings in Ruby.
Storing Data in Variables.
Creating Constants.
Interpolating Variables in Double-Quoted Strings.
Reading Text on the Command Line.
Creating Symbols in Ruby.
Working with Operators.
Handling Operator Precedence.
Working with Arrays.
Using Two Array Indices.
Working with Hashes.
Working with Ranges.
Chapter 2: Conditionals, Loops, Methods, and Blocks.
It’s All about Making Choices: the if Statement.
Using the case Statement.
Using Loops.
Creating and Calling a Method.
Making Use of Scope.
Working with Blocks.
Chapter 3: Classes and Objects.
All about Encapsulation.
Creating a Class.
Creating an Object.
Basing One Class on Another.
Understanding Ruby’s Object Access.
Overriding Methods.
Creating Class Variables.
Creating Class Methods.
Creating Modules.
Creating Mixins.
Chapter 4: Welcome to Rails.
Putting Ruby on Rails.
Introducing Model-View-Controller Architecture.
Giving the View Something to Do.
Mixing Ruby Code and HTML Inside the View.
Passing Data from an Action to a View.
Escaping Sensitive Text.
Adding a Second Action.
Chapter 5: Building Simple Rails Applications.
Accessing Data the User Provides.
Using Rails Shortcuts for HTML Controls.
Working with Models.
Tying Controls to Models.
Initializing Data in Controls.
Storing Data in Sessions.
Chapter 6: Connecting to Databases.
Tutorial on Databases.
Creating a Data-Aware Rails Application.
Creating the Database.
Running the store Application.
Adding Another Record.
Beautifying the Display.
Chapter 7: Working with Databases.
Displaying Items to the Customer.
Creating a Shopping Cart.
Combining Purchases in the Cart.
Clearing the Cart.
Letting the User View the Cart Anytime.
Chapter 8: Validating and Testing.
Validating the Presence of Data.
Validating if Data Is Numeric.
Validating if Data Is Unique.
Creating the Validator Application.
Writing Your Own Validate Method.
Testing Your Model.
Testing Your Controller.
Chapter 9: Controlling the Action with the Action Controller.
Routing Refinements.
Creating Cookies.
Creating a Filter.
Logging in with Filters.
Using After Filters.
Rendering Text Directly.
Caching.
Chapter 10: Getting the Big Picture with Views.
Creating XML.
Creating XML Attributes.
Using View Helpers.
Using View Pagination.
Using Partial Templates.
Passing Data to Partial Templates.
Chapter 11: Ajax and Rails.
Using Ajax.
Getting Access to Ajax Data.
Using XML and Ajax.
Using HTML Controls and Ajax.
Performing Ajax Searches.
Performing Visual Effects.
Appendix A: Answers to Exercises.
Index.
- FTSenior .Net Developer - Mobility/Portal SolutionsNSW
- CCDB2 / DBA Technical Consultant - Finance company - Melbourne CBD - DB2VIC
- FTAccount Manager - Strategic Enterprise DevelopmentNSW
- FTMobile Portal Architect - .Net TechnologiesNSW
- CCDigital Business Analyst - Agile/ScrumNSW
- FTTechnical Operations ManagerNSW
- FTSupport Consultant - Global Vendor - $55-75,000NSW
- FTDigital Account ManagerNSW
- FTDigital Account ManagerNSW
iAsset is a channel management ecosystem that automates all major aspects of the entire sales,marketing and service process, including data tracking, integrated learning, knowledge management and product lifecycle management.
What is Wireless 2.0
The challenges and the Practical Approach to a ‘Wi-Fi that works’ Creating “Wi-Fi that works”, even with minimal requirements, is a tall order given the breadth of client and application types that must perform well over the wireless infrastructure, but when adding in the speed and complexity of 802.11n, a variety of demanding applications, high-density environments, and tricky deployment scenarios, controller-based vendors cannot live up to their promises of Ethernet-like determinism. This whitepaper defines what a Wireless 2.0 network is, and the importance of a controller-less architecture for performance, reliability, scalability, security, and flexibility. Download this now
HiveManager Online: Less Dollars, More Sense
Today’s de facto standard controller-based Wi-Fi infrastructure model is just too complicated, too expensive, and too unreliable. It’s common for enterprise and mid-market network operators alike to get caught in a crossroads of compromises involving costs, complexity, features, and reliability.
Buying Guides
Latest Products
- Canada unveils latest lawful Internet access law
- NewNet vows to drive forward with onetime Motorola WiMax business
- Google's Motorola deal could be boost in rivalry with Apple
- Crypto experts analyze millions of X.509 certificates, call RSA crypto flawed
- Windows 8 adds help for visually impaired, physically challenged








