Skip to content

Your Basket

Free Post & Packing - Click for details

Receive the Foyles Newsletter

  • › Author Events
  • › Signings
  • › New Arrivals
  • › Offers
Newsletter sign up form
British Book Awards banner

Browse

[x]

This item has been added to your basket

View Basket

Beginning Ruby on Rails

Contributor(s):
Steve Holzner (author)
Format:
Paperback , 233 x 185 x 23mm , 380pp
Publication date:
24 Nov 2006 
Publisher:
John Wiley & Sons Ltd 
ISBN-13:
9780470069158 
ISBN-10:
0470069155 

List Price: £22.99
Online Price: £19.54
You Save: £3.45 (15%)

Buy Now

1 in stock at Charing Cross Road available for collection after 24 hours.

Free Postage and Packing on UK orders

For details of Foyles prices online and in-store and delivery arrangements click here *


Synopsis:

Ruby on Rails is the revolutionary online programming tool that makes creating functional e-commerce web sites faster and easier than ever. With the intuitive, straightforward nature of Ruby and the development platform provided by Rails, you can put together full-fledged web applications quickly, even if you're new to web programming. 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 include: 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; and, How to connect Rails with Ajax. 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.

Author Biography:


Steven Holzner is the award-winning author of more than 100 programming books. He's been involved in Ruby on Rails for a long time, and does commercial Rails development. He's also been on the faculty of Cornell University and MIT, as well as having been a contributing editor for PC Magazine.

Table of Contents:

Acknowledgments. 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

Part ial Templates. Passing Data to

Part ial 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.

Additional Information:

Illustrations: illustrations Related subjects: Web site development Object-oriented programming (Computer science) Ruby (Computer program language) Web design

* Please Note:

Online: All orders placed here will be charged at the online price shown above whether you have the item delivered or you collect it.

Instore: Items purchased instore are at the price on offer there at that time.

Store Collection: If you are paying online but wish to collect from our Charing Cross Road store, please allow 24 hours between purchase and collection. Please go to Customer Services in the basement

Same-day: For same-day collections, please reserve the book directly with the store on 020 7437 5660 or email orders@foyles.co.uk. Please note the price charged will be the instore not online price.