concept people in category ruby

This is an excerpt from Manning's book Rails 4 in Action: Revised Edition of Rails 3 in Action.
You don’t have to build huge applications with Rails, either. There’s a Rails application that was built for the specific purpose of allowing people to review the previous edition of this book, and it was just over 2,000 lines of code. This application allowed reviewers during the writing of the book to view the book’s chapters and leave notes on each element, leading to a better book overall.

This is an excerpt from Manning's book Rails 3 in Action.
A question sometimes asked by people new to Rails is, “Is Rails ready?” Of course it is! The evidence is stacked mightily in Rails’ favor with websites such as Twitter, Yellow Pages, and of course Basecamp, serving millions and millions of page requests daily.[6]
// FIXME: Tell people that this is a manifest file, real code should go into discrete files // FIXME: Tell people how Sprockets and CoffeeScript works // //= require jquery //= require jquery_ujs //= require_tree .
One great example of how an API is used is Twitter. Twitter has had an API for an exceptionally long time now, and people have written Twitter clients for just about every operating system out there using this API. The functionality of the site is effectively the same, but people have come up with interesting ways of displaying and modifying that information, such as the Twitter for Mac clients.
There are many, many Rails sites out there that already provide an API interface, such as GitHub[3] and (as previously mentioned) Twitter.[4] Both of these APIs have exceptionally well-documented examples of how to use them and what can be done with them, which is a great way to convince people to start using your API. API documentation, however, is an exercise best left for you after this chapter’s done.
You’ve got a link (http://example.com/api/v1/projects/1) provided by your create action that doesn’t go anywhere if people try to access it. Soon this URL will show a particular project’s attributes through the show action in your Api::V1::ProjectsController. Within those attributes, you’ll also show a last_ticket element, which will contain the attributes for the most recently updated ticket. To do this, you use another option of respond_with, the :methods option. Using this option will change the output of each project resource in your JSON API to something like this:
{ "project": { "created_at": "[timestamp]", "id": 1, "name": "Ticketee", "updated_at": "[timestamp]", "last_ticket": { "ticket": { "asset_updated_at": null, "created_at": "[timestamp]", "description": "A ticket, nothing more.", "id": 1, "project_id": 1, "state_id": null, "title": "A ticket, nothing more.", "updated_at": "[timestamp]", "user_id": 2 } } } }Using the last_ticket method, people using the API will be able to discover when the last activity was on the project. You could add other fields such as the comments too if you wished, but this example is kept simple for quality and training purposes.