Beginning Rails 4, 3rd edition
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 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|
|May 30, 2020|
Do you like this book? Please share with your friends, let's read it !! :)