Commit b73bd2d1 authored by Jon Mountjoy's avatar Jon Mountjoy

add a default welcome screen and a readme

parent 0c4f3886
# ruby-getting-started
A barebones Rails app, which can easily be deployed to Heroku.
## Running Locally
Make sure you have Ruby installed. Also, install the [Heroku Toolbelt](https://toolbelt.heroku.com/).
```sh
git clone git@github.com:heroku/ruby-getting-started.git # or clone your own fork
cd ruby-getting-started
bundle install
rake db:migrate
foreman start web
```
Your app should now be running on [localhost:5000](http://localhost:5000/).
## Deploying to Heroku
```
heroku create
git push heroku master
heroku run rake db:migrate
heroku open
```
## Documentation
For more information about using Ruby on Heroku, see these Dev Center articles:
- [Ruby on Heroku](https://devcenter.heroku.com/categories/ruby)
== README
This README would normally document whatever steps are necessary to get the
application up and running.
Things you may want to cover:
* Ruby version
* System dependencies
* Configuration
* Database creation
* Database initialization
* How to run the test suite
* Services (job queues, cache servers, search engines, etc.)
* Deployment instructions
* ...
Please feel free to use a different markup language if you do not plan to run
<tt>rake doc:app</tt>.
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
// Place all the styles related to the welcome controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
class WelcomeController < ApplicationController
# GET /welcome
def index
end
end
module WelcomeHelper
end
<h1>Getting Started with Ruby</h1>
<p>
Welcome!
</p>
......@@ -5,7 +5,8 @@ Rails.application.routes.draw do
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# root 'welcome#index'
root 'welcome#index'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
......
require 'test_helper'
class WelcomeControllerTest < ActionController::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class WelcomeHelperTest < ActionView::TestCase
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment