Search Ebook here:


Beginning Rails 4, 3rd edition



 PDF

Author: Adam Gamble

Publisher: Apress

Genres:

Publish Date: September 10, 2013

ISBN-10: 1430260343

Pages: 328

File Type: PDF

Language: English

read download

Book Preface

In the past several years, the Web has exploded to include information on every facet of our lives. It touches everything we do; even some refrigerators have included access to the Internet. Ruby on Rails has played a part in fueling that explosion. This book will equip you with the knowledge you need to build real production web applications. It leads you through installing the required prerequisites on Windows, OS X, or Linux and then jumps straight into building applications. It is meant for the novice programmer who has some command line experience but little or no programming experience. At the end of the book, you should have a firm grasp on the Ruby language and the Rails framework.

Chapter 1 introduces you to the current web landscape and then goes over some of the ideals and principles that the Rails framework is built on. It teaches you about the MVC paradigm and shows how Rails implements each piece of that paradigm (model, view, and controller).

Chapter 2 walks you through installing Ruby, Rails, and the SQLite database. It is broken down by operating system, and when finished, will give a level platform among all three. You should be able to follow along with the book no matter which platform you choose. It also will show you how to build a quick “Hello World” application to make sure everything is working correctly.

Chapter 3 dives right in and starts the blog application that we’ll use throughout the rest of the book. We’ll continually build on this application, enhancing and refactoring as we go along. You’ll create your first model in this chapter, the article model. We’ll cover how migrations work and even get Rails to construct our first scaffold. At the end of this chapter, you’ll have a working blog application, although it will be lacking features. We’ll add those in the following chapters.

Chapter 4 slows down a little bit from the previous chapter and takes you on a tour of the Ruby language. If you’ve used Ruby for a while and feel comfortable with it, feel free to skim over this. If you’re new to Ruby, this chapter will teach you everything you need to know to use Rails. Ruby is an easy to pick up language, and the syntax is very inviting and easy to read. Although we won’t add any code to our blog application here, you will get to use the Ruby language inside the Ruby console.

Chapter 5 shows you how Rails uses Active Record to let you interact with any number of databases. Rails abstracts away the difficult bits (unless you need them) and lets you interact with databases in an object-oriented way. You’ll learn how to create new records, find records, and even update and delete them. We’ll also apply some basic validations so we can be sure our data are just the way they should be.

Chapter 6 expounds on the previous chapter. You’ll dive deeper into Active Record and your models. You will build more complex validations and custom instance methods. A major component of this chapter is the relation between your models and how Rails lets you define those relations. Your models for the blog application will have complex relations and validations.

In Chapter 7 we’ll cover the view and controller parts of MVC. We will flesh out the blog application and walk through the code that Rails generated for the scaffold of our controllers and views.

Chapter 8 modifies the controller and views in more advanced ways, and at this point the features of our blog application have come together. You’ll learn about controller callbacks and strong parameters that were added in Rails 4. We’ll also give our application a fresh coat of paint with some Cascading Style Sheets (CSS).

Chapter 9 goes over the Asset Pipeline that was added in Rails 3.2 and how to add JavaScript and CSS. We’ll enhance our application with JavaScript dabbling in Ajax and animation. This chapter covers CoffeeScript and SASS and how they integrate into the Rails landscape. At the end of this chapter, your application will have a nice layer of spit and polish.

Chapter 10 adds e-mail capability to our application. You will be able to suggest articles to friends and even be notified when your article has new comments. It will also discuss methods to receive e-mail into your application.

Chapter 11 covers one of the most important topics in Rails applications: testing. You can be sure that after this chapter you’ll be able to add new features without breaking old ones. You’ll test whether your application behaves exactly the way you think it should.

Chapter 12 covers internationalization. After all, it is the World Wide Web, and not everyone speaks the same language. We’ll translate our web application into another language, and along the way you’ll learn how to translate the application into as many languages as you like.

Chapter 13 will show you how to deploy your web application to Heroku, one of the leading Platform As A Service (PAAS) providers. This will allow you to present your application to the world quickly and easily so you can start building a user base.
The three appendices cover the Git version control system, SQL, and where to find help in the Rails community.


Download Ebook Read Now File Type Upload Date
Download here Read Now PDF May 30, 2020

How to Read and Open File Type for PC ?