This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
/
everything-you-need.html
28 lines (20 loc) · 2.14 KB
/
everything-you-need.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
layout: page
title: Rails has everything you need
permalink: /everything-you-need/
description: Ruby on Rails is not a minimalist framework, it's a metropolis. One filled with all the major institutions needed to run a large, sprawling application like Basecamp or GitHub or Shopify.
---
<section>
<h1>Rails has everything you need</h1>
<figure class="right">
<img src="/images/everything.png" alt="So many possibilities">
</figure>
<p>Ruby on Rails is not a minimalist framework, it's a metropolis. One filled with all the major institutions needed to run a large, sprawling application like Basecamp or GitHub or Shopify.</p>
<p>This means there's a lot to learn! But it also means you can learn it piece by piece. You do not need to be an expert in all facets of Ruby on Rails to get started on creating a great application.</p>
<p>The spine of a Rails application is the Model-View-Controller pattern that organizes programming logic into three major layers. The model is where your so-called business logic lives. This is where you calculate whether the next invoice is due or how many todos are left to be completed on a project. The controller is what accepts clicks and taps from the user, routes the commands to the model, and then renders HTML or JSON templates as the view.</p>
<figure class="left">
<img src="/images/action-pack.png" alt="Action Pack">
</figure>
<p>In Rails, the model is chiefly handled by Active Record (with some backup from Active Model). That's the framework for talking to the database. The controller is handled by Action Controller and the view by Action View, together presented as Action Pack.</p>
<p>In addition to these core frameworks, we also ship with Action Mailer, for sending HTML and plaintext emails. Action Cable for making live updates to pages over WebSockets. Active Support enhances the Ruby language and standard library with more sugar and goodies for use in web applications. And finally, Railties provide all commands, generators, and glue to bind all these frameworks together into the cohesive system that is Ruby on Rails.</p>
</section>