GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - runoncode/rails: Ruby on Rails

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

34,016 Commits
34,016 Commits

Folders and files

NameName
Last commit message
Last commit date
actionmailer
actionmailer
 
 
actionpack
actionpack
 
 
activemodel
activemodel
 
 
activerecord
activerecord
 
 
activesupport
activesupport
 
 
ci
ci
 
 
guides
guides
 
 
railties
railties
 
 
tasks
tasks
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
.yardopts
.yardopts
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Gemfile
Gemfile
 
 
RAILS_VERSION
RAILS_VERSION
 
 
README.rdoc
README.rdoc
 
 
RELEASING_RAILS.rdoc
RELEASING_RAILS.rdoc
 
 
Rakefile
Rakefile
 
 
install.rb
install.rb
 
 
load_paths.rb
load_paths.rb
 
 
rails.gemspec
rails.gemspec
 
 
version.rb
version.rb
 
 

Repository files navigation

Welcome to Rails

Rails is a web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.

Understanding the MVC pattern is key to understanding Rails. MVC divides your application into three layers, each with a specific responsibility.

The View layer is composed of “templates” that are responsible for providing appropriate representations of your application’s resources. Templates can come in a variety of formats, but most view templates are HTML with embedded Ruby code (.erb files).

The Model layer represents your domain model (such as Account, Product, Person, Post) and encapsulates the business logic that is specific to your application. In Rails, database-backed model classes are derived from ActiveRecord::Base. Active Record allows you to present the data from database rows as objects and embellish these data objects with business logic methods. Although most Rails models are backed by a database, models can also be ordinary Ruby classes, or Ruby classes that implement a set of interfaces as provided by the ActiveModel module. You can read more about Active Record in its README.

The Controller layer is responsible for handling incoming HTTP requests and providing a suitable response. Usually this means returning HTML, but Rails controllers can also generate XML, JSON, PDFs, mobile-specific views, and more. Controllers manipulate models and render view templates in order to generate the appropriate HTTP response.

In Rails, the Controller and View layers are handled together by Action Pack. These two layers are bundled in a single package due to their heavy interdependence. This is unlike the relationship between Active Record and Action Pack which are independent. Each of these packages can be used independently outside of Rails. You can read more about Action Pack in its README.

Getting Started

  1. Install Rails at the command prompt if you haven’t yet:

    gem install rails
    
  2. At the command prompt, create a new Rails application:

    rails new myapp
    

    where “myapp” is the application name.

  3. Change directory to myapp and start the web server:

    cd myapp; rails server
    

    Run with --help or -h for options.

  4. Go to localhost:3000 and you’ll see:

    "Welcome aboard: You're riding Ruby on Rails!"
    
  5. Follow the guidelines to start developing your application. You may find the following resources handy:

  • The README file created within your application.

  • The Getting Started with Rails.

  • The Ruby on Rails Tutorial.

  • The Ruby on Rails Guides.

  • The API Documentation.

Contributing

We encourage you to contribute to Ruby on Rails! Please check out the Contributing to Rails guide for guidelines about how to proceed. Join us!

Code Status

  • <img src=“https://secure.travis-ci.org/rails/rails.png”/>

  • <img src=“https://gemnasium.com/rails/rails.png?travis”/>

License

Ruby on Rails is released under the MIT License.

About

Ruby on Rails

rubyonrails.org

Resources

Readme

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.