Rails Crash Course: A No-Nonsense Guide to Rails Development by Anthony Lewis

Posted by

By Anthony Lewis

Rails is a strong, versatile improvement platform that permits you to construct complicated web content quick. significant web content like GitHub, Hulu, and Twitter have run Rails below the hood, and if you happen to understand barely enough HTML and CSS to be harmful, Rails Crash direction will educate you to harness Rails on your personal tasks and create internet purposes which are speedy, solid, and secure.

In half I, you'll examine Ruby and Rails basics after which dive immediately into versions, controllers, perspectives, and deployment. As you're employed during the fundamentals, you'll find out how to:

- Craft power versions with energetic Record
- construct view templates with Embedded Ruby
- Use Git to roll again to prior types of your code base
- set up purposes to Heroku

In half II, you'll take your talents to the subsequent point as you construct a social networking app with extra complicated Ruby instruments, akin to modules and metaprogramming, and complicated facts modeling strategies inside of Rails's energetic list. You'll find out how to:

- enforce an authentication approach to spot approved users
- Write your personal automatic checks and refactor your code with confidence
- Maximize functionality with the asset pipeline and turbolinks
- safe your app opposed to SQL injection and cross-site scripting
- arrange a server and set up purposes with Capistrano

Each bankruptcy is filled with hands-on examples and routines to augment what you've discovered. no matter if you're thoroughly new to Ruby or you've been mucking round for a piece, Rails Crash path will take you from the fundamentals to transport your first Rails program, quickly.

Show description

Read Online or Download Rails Crash Course: A No-Nonsense Guide to Rails Development PDF

Best computer science books

Computer Science Illuminated

Designed to provide a breadth first assurance of the sector of machine technology.

Introduction to Data Compression (4th Edition) (The Morgan Kaufmann Series in Multimedia Information and Systems)

Each one version of advent to information Compression has largely been thought of the easiest creation and reference textual content at the paintings and technological know-how of information compression, and the fourth variation keeps during this culture. information compression concepts and know-how are ever-evolving with new functions in photograph, speech, textual content, audio, and video.

Computers as Components: Principles of Embedded Computing System Design (3rd Edition) (The Morgan Kaufmann Series in Computer Architecture and Design)

Pcs as parts: ideas of Embedded Computing approach layout, 3e, provides crucial wisdom on embedded platforms know-how and methods. up to date for today's embedded structures layout tools, this version positive factors new examples together with electronic sign processing, multimedia, and cyber-physical platforms.

Computation and Storage in the Cloud: Understanding the Trade-Offs

Computation and garage within the Cloud is the 1st finished and systematic paintings investigating the difficulty of computation and garage trade-off within the cloud as a way to decrease the general program rate. clinical purposes tend to be computation and information in depth, the place complicated computation projects take decades for execution and the generated datasets are frequently terabytes or petabytes in dimension.

Extra resources for Rails Crash Course: A No-Nonsense Guide to Rails Development

Sample text

Nil irb(main):083:0> hello "Tony" Hello, Tony! => nil The parentheses around method arguments are also optional. Include them if the intention is not clear; otherwise, feel free to omit them. Classes In an object-oriented programming language such as Ruby, a class represents the state and behavior of a distinct type of object. In Ruby, an object’s state is stored in instance variables, and methods define its behavior. A Ruby class definition starts with the word class, followed by a capitalized name, and continues to the matching end.

These are two different objects. The two symbols have the same content and the same object id. When Ruby compares two strings for equality, it checks each individual character. Comparing two symbols for equality requires only a numeric comparison, which is much more efficient. Arrays An array represents a list of objects in Ruby. You create an array by surrounding a list of objects with square brackets. For example, let’s make an array of numbers: irb(main):021:0> list = [1, 2, 3] => [1, 2, 3] Ruby Fundamentals 7 Ruby arrays can contain any kind of object, even other arrays.

If you use the default SQLite database in your application, the database itself is also placed in this folder. The lib Directory The lib directory is the place to put any reusable library code you write. This directory is initially empty except for two subdirectories: assets and tasks. Assets are images, CSS stylesheets, and JavaScript files. Tasks are Ruby scripts used to automate actions such as managing your application’s database, clearing log and temporary files, and running tests. These tasks are executed using the rake command.

Download PDF sample

Rated 4.79 of 5 – based on 10 votes