Rails 5 and Ruby 2.2 bring many improvements, including new APIs and substantial performance enhancements, and the fifth edition of this award-winning classic is now updated! If you're new to Rails, you'll get step-by-step guidance. If you're an experienced developer, this book will give you the comprehensive, more » insider information you need for the latest version of Ruby on Rails.
Ruby on Rails helps you produce high-quality, beautiful-looking web applications quickly. You concentrate on creating the application, and Rails takes care of the details. Learn Rails the way the Rails core team recommends it, along with the tens of thousands of developers who have used this broad, far-reaching tutorial and reference.
We start with a step-by-step walkthrough of building a real application, and in-depth chapters look at the built-in Rails features. Follow along with an extended tutorial as you write a web-based store application. Eliminate tedious configuration and housekeeping; internationalize your applications; incorporate Ajax, REST, web services, and e-mail handling into your applications; test your applications as you write them using the built-in testing frameworks; and deploy your applications easily and securely. New in this edition is coverage of Action Cable, and completely updated code for Rails 5.
Rails 1.0 was released in December 2005, more than 10 years ago. This book was there from the start, and didn't just evolve alongside Rails, it evolved with Rails. It has been developed in consultation with the Rails core team. In fact, Rails itself is tested against the code in this book.
What You Need:
All you need is a Windows, Mac OS X, or Linux machine to do development on. This book will take you through the steps to install Rails and its dependencies. If you aren't familiar with the Ruby programming language, this book contains a chapter that covers the basics necessary to understand the material in the book. « less
This concise teaches you how to use the power of Docker and Kubernetes to deploy your Rails applications easily and efficiently. Docker and Kubernetes are increasing in popularity every day, but what if you want to leverage their benefits for your Rails application? This is the book you need.Deploying more » Rails with Docker, Kubernetes and ECSshows you how to set up the project, push it to DockerHub, manage services and set up an efficient continuous integration environment. Every concept is clearly explained alongside a full Ruby on Rails application deployment. You’ll also learn how to deploy via Docker using Amazon EC2 Container Service.
What You Will Learn
* How to create a Rails API application using Rails 5 and PostgreSQL, and Dockerize it
* How to write and test templates to run the application with Kubernetes
* How to create a Kubernetes cluster in Amazon Web Services and run your
* How to inspect and troubleshoot problems in the cluster
* How to automatize the the whole deployment process with Jenkins
Who This Book Is For
This book is for anyone who wants to understand how to effectively deploy a Rails application using Docker and Kubernetes. You will need to understand Rails and have basic knowledge of what Docker and Kubernetes are used for. « less
This short early adopter book details both how you'll upgrade existing web and other applications from Rails 4.2 to 5 and how to create new applications in Rails 5.
The headline features, Rails API and ActionCable, are each looked at in detail, building small example projects to demonstrate how to more » build a JSON API, add real-time notifications to a page and how to create a single-page application.
All the breaking changes are shown, along with how to fix your app to work with the new API, and the improvements to ActiveRecord and the testing framework are fully detailed.
After reading and using this book, you'll be poised to move forward with building your apps with the new Rails 5 as it stands now and when it finalizes.
What You'll Learn
* What are the new changes to Rails 5 and how to upgrade from Rails 4.2
* How to use the new Ruby Persistence tool/framework, ActiveRecord
* How to handle test framework changes
* What are the latest Rails API and how to employ them
* What is and how to use the new ActionCable
This short book is aimed at existing Rails developers who are looking to quickly get up to speed with the changes in the new Rails 5 framework. « less
A quick-start guide to developing beautiful web applications with the Bootstrap toolkit and Rails framework
Bootstrap is a free, open source CSS and JS framework that helps you create websites in minutes, and Ruby on Rails, or Rails as it's known, is an open source web application framework written in the Ruby programming language. Bootstrap is typically used in Rails applications to design websites and create more » themes because it comes loaded with predesigned CSS and HTML templates.
The book starts by taking you through web application development in Rails. It teaches you how to set up the Bootstrap framework, and will showcase the true power of your Rails app using Bootstrap's grid system. You will learn about other Bootstrap components and move on to work with modals and carousels. It concludes with the opportunity to test your skills by creating a shopping cart using Bootstrap modals. « less
Ruby on Rails is an open source web framework. It's famously simple to build a basic Rails application. Once you've started down the track, however, you discover that Rails is a powerful, deep, and rich full-stack platform capable of tackling virtually any development challenge.
Rails 4 in Action is more » a fully-revised second edition of Rails 3 in Action. This hands-on, comprehensive introduction to Rails gives readers everything they need to become competent and confident Rails developers. It shows how to develop a ticket tracking application that includes RESTful routing, authentication and authorization, file uploads, email, and more. It explores powerful features like designing APIs and building a Rails engine. The book also provides Test Driven Development and Behavior Driven Development in action throughout the book—just like in a top Rails shop. « less
Build simple to advanced applications in Rails 4 through 10 exciting projects
Rails is a rapidly moving, open source, web development framework, and keeping up to speed with it is a big task. You might have already built applications using it, but there have been significant changes in the syntax and semantic of the Rails framework in the latest upgrade.
Rails 4 Application Development more » Hotshot shows you how to build the most popular types of applications using Rails 4, and highlights new ways to do things. The book also closely follows lots of the best practices, gems, and popular solutions already known to the community, and tracks the changes in these. This book brings new ideas to refactor and restructure code to make it perform better in production, and enables you to write production-ready code. « less
Build a Healthy Codebase
Does your Rails code suffer from bloat, brittleness, or inaccuracy? Cure these problems with a regular dose of test-driven development. Rails 4 Test Prescriptions is a comprehensive guide to how tests can help you design and write better Rails applications. In this completely revised edition, you'll more » learn why testing works and how to test effectively using Rails 4, Minitest 5, and RSpec 3, as well as popular testing libraries such as factory_girl and Cucumber. Do what the doctor ordered to make your applications feel all better. Side effects may include better code, fewer bugs, and happier developers.
Your Ruby on Rails application is sick. Deadlines are looming, but every time you make the slightest change to the code, something else breaks. Nobody remembers what that tricky piece of code was supposed to do, and nobody can tell what it actually does. Plus, it has bugs. You need test-driven development, a process for improving the design, maintainability, and long-term viability of software.
Containing both practical code examples and discussion of why testing works, this book starts with the most basic features delivered as part of core Ruby on Rails. Once you've integrated those features into your coding practice, you'll learn how to use popular third-party testing tools such as RSpec, Mocha, Cucumber, and factory_girl. You'll test the component parts of a Rails application, including the back-end model logic and the front-end display logic. Using Rails examples, you'll learn how to use testing to enable your code to respond better to future change. Plus, you'll see how to handle real-world testing situations.
What You Need:Ruby 2.1, Rails 4 « less
A No-Nonsense Guide to Rails Development
Rails is a robust, flexible development platform that lets you build complex websites quickly. Major websites like GitHub, Hulu, and Twitter have run Rails under the hood, and if you know just enough HTML and CSS to be dangerous, Rails Crash Course will teach you to harness Rails for your own projects more » and create web applications that are fast, stable, and secure.
In Part I, you'll learn Ruby and Rails fundamentals and then dive straight into models, controllers, views, and deployment. As you work through the basics, you'll learn how to:
* Craft persistent models with Active Record
* Build view templates with Embedded Ruby
* Use Git to roll back to previous versions of your code base
* Deploy applications to Heroku
In Part II, you'll take your skills to the next level as you build a social networking app with more advanced Ruby tools, such as modules and metaprogramming, and advanced data modeling techniques within Rails's Active Record. You'll learn how to:
* Implement an authentication system to identify authorized users
* Write your own automated tests and refactor your code with confidence
* Maximize performance with the asset pipeline and turbolinks
* Secure your app against SQL injection and cross-site scripting
* Set up a server and deploy applications with Capistrano
Each chapter is packed with hands-on examples and exercises to reinforce what you've learned. Whether you're completely new to Ruby or you've been mucking around for a bit, Rails Crash Course will take you from the basics to shipping your first Rails application, fast. « less
Build highly effective Shopify apps using the powerful Ruby on Rails framework
Shopify is an e-commerce website platform that allows merchants to create and run their own online store. The Shopify App Store is a collection of apps that extend the capabilities of online stores and is a perfect place to earn recurring revenue.
Shopify Application Development will teach you to build more » Shopify apps using Ruby on Rails, deploy them to Heroku, and publish them in the Shopify App Store. Additionally, you will learn how to receive recurring revenue via the Shopify Billing API.
This is an easy-to-follow manual that will guide you through the entire process of application development with Shopify. This book focuses on building and launching a single application using best practices such as Test-Driven Development (TDD), agile methodologies, and iterative development from start to finish. « less
Ruby on Rails 4 is leaner, tighter, and even more valuable to professional web developers. More than ever, it helps you focus on what matters most: delivering business value via clean and maintainable code.
The Rails 4 Way is the only comprehensive, authoritative guide to delivering production-quality more » code with Rails 4. Kevin Faustino joins pioneering Rails developer Obie Fernandez to illuminate the entire Rails 4 API, including its most powerful and modern idioms, design approaches, and libraries. They present extensive new and updated content on security, performance, caching, Haml, RSpec, Ajax, the Asset Pipeline, and more. « less