Agile Web Development with Rails: A Pragmatic Guide by Dave Thomas

By Dave Thomas

Rails is a full-stack, open resource net framework that permits you to create full-featured, subtle web-based functions, yet with a twist... a whole Rails program most likely has much less overall code than the XML you would have to configure an analogous software in different frameworks. With this publication you are going to how to use ActiveRecord to attach enterprise gadgets and database tables. not more painful object-relational mapping. simply create your corporation items and permit Rails do the remaining. you will use the motion Pack framework to path incoming requests and render pages utilizing easy-to-write templates and elements. See the right way to make the most the Rails provider frameworks to ship emails, enforce internet prone, and create dynamic, user-centric web-pages utilizing integrated Javascript and Ajax help. There are vast chapters on trying out, deployment, and scaling. you will see how effortless it really is to put in Rails utilizing your net server of selection (such as Apache or lighttpd) or utilizing its personal incorporated net server. you can be writing functions that paintings along with your favourite database (MySQL, Oracle, Postgres, and extra) very quickly in any respect. you will create a whole on-line shop software within the prolonged educational part, so you will see how an entire Rails software is built - iteratively and speedily. Rails strives to honor the Pragmatic Programmer's "DRY precept" through warding off the additional paintings of configuration records and code annotations. you could enhance in real-time: make a transformation, and watch it paintings instantly. omit XML. every thing in Rails, from templates to manage move to company common sense, is written in Ruby, the language of selection for programmers who prefer to get the activity performed good (and depart paintings on time for a change). Rails is the framework of selection for the recent iteration of internet 2.0 builders. Agile internet improvement with Rails is the e-book for that iteration, written by way of Dave Thomas (Pragmatic Programmer and writer of Programming Ruby) and David Heinemeier Hansson, who created Rails.

Show description

Read or Download Agile Web Development with Rails: A Pragmatic Guide PDF

Similar client-server systems books

MCSA/MCSE: Windows Server 2003 Network Infrastructure Implementation, Management, and Maintenance Study Guide (70-291)

Major adjustments were made to the MCSA and MCSE courses with the intention to supply a transparent profession course for IT pros aiding home windows Server 2003. Sybex, winner of "Best examine courses" in CertCities. com 2002 Readers' selection Awards, bargains MCSA and MCSE applicants this thoroughly up to date variation to assist arrange for middle examination 70-291, imposing, handling, and conserving a Microsoft home windows Server 2003 community Infrastructure.

Introducing Windows Server 2012

Get a head commence comparing Window Server 2012—with technical insights from a Microsoft MVP who’s labored commonly with the beta free up. This sensible advent illuminates new positive aspects and features, with situations demonstrating how the platform can meet the wishes of what you are promoting. in response to beta software program, this booklet offers the early, high-level details you must start getting ready now for deployment and administration.

Windows Server® 2008 R2 Administration: Instant Reference

Your whole home windows Server 2008 R2 questions answered—on the spot! wake up to hurry at the new positive factors of home windows Server 2008 R2 with this indispensableguide. Designed for busy IT pros, it is the ideal go-to source for fast solutions and real-world suggestions as you administer the hot server OS.

Getting Started with Storm: Continuous streaming computation with Twitter's cluster technology

At the same time gigantic facts is popping the area the wrong way up, the following section of the revolution is already taking form: real-time info research. This hands-on advisor introduces you to typhoon, a disbursed, JVM-based process for processing streaming information. via basic tutorials, pattern Java code, and an entire real-world state of affairs, you are going to the right way to construct quick, fault-tolerant options that technique effects once the information arrives.

Additional info for Agile Web Development with Rails: A Pragmatic Guide

Sample text

We already know that Rails uses a convention to parse the URL into a target controller and an action within that controller. So a simple approach would be to adopt this URL convention for our links. rhtml would contain the following. ...

Say Goodbye!

... rhtml would point the other way. ...

Say Hello!

... This approach would certainly work, but it’s a bit fragile. If we were to move our application to a different place on the web server, the URLs would no longer be valid.

The rest of us mortals will probably use our distribution’s package manager to install the code we need (pretty much the way James Duncan Davidson’s instructions did for the Mac). But, because each distribution is different, we’re going to punt on the details and instead reference an online resource that has the scoop for Ubuntu, the popular Debian-based distribution. The link here is for the “Dapper Drake” distribution. You may find that this has been superceded by the time you read this. 5 Development Environments The day-to-day business of writing Rails programs is pretty straightforward.

Under Linux, you’ll need gcc and friends (but these will likely already be installed). Under OS X, you’ll need to install the developer tools (they come with the operating system but aren’t installed by default). You’ll also need to install your database driver into the correct version of Ruby. In the installation instructions starting back on page 34 we installed our own copy of Ruby, bypassing the built-in one. It’s important to remember to have this version of Ruby first in your path when building and installing the database driver.

Download PDF sample

Rated 4.57 of 5 – based on 16 votes