Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: railsbridge/docs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: railsbridge-nyc/docs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Feb 11, 2018

  1. add a section on hashes

    CZagrobelny committed Feb 11, 2018
    Copy the full SHA
    8dd27cb View commit details
  2. Copy the full SHA
    4d5767d View commit details

Commits on Feb 12, 2018

  1. Copy the full SHA
    0764607 View commit details
  2. Copy the full SHA
    6018f95 View commit details
  3. Copy the full SHA
    a9ed359 View commit details
  4. fix syntax error

    CZagrobelny committed Feb 12, 2018
    Copy the full SHA
    5e9fa77 View commit details
  5. Copy the full SHA
    af54c41 View commit details
  6. Copy the full SHA
    695359d View commit details

Commits on Feb 17, 2018

  1. Copy the full SHA
    143020c View commit details
  2. remove unused image

    CZagrobelny committed Feb 17, 2018
    Copy the full SHA
    04ca35d View commit details
  3. cleanup

    CZagrobelny committed Feb 17, 2018
    Copy the full SHA
    0038fc7 View commit details
  4. new line at end of file

    CZagrobelny committed Feb 17, 2018
    Copy the full SHA
    051d2cb View commit details

Commits on Feb 19, 2018

  1. Copy the full SHA
    7ebc503 View commit details

Commits on Mar 25, 2018

  1. Copy the full SHA
    59a6294 View commit details

Commits on Mar 27, 2018

  1. Merge pull request #2 from M0nica/fix-server-instructions

    updated server instructions to work in Vagrant
    Christine Zagrobelny authored Mar 27, 2018
    Copy the full SHA
    b7db20a View commit details

Commits on Apr 24, 2018

  1. Add docker instructions to installfest

    Parinda Darden committed Apr 24, 2018
    Copy the full SHA
    e6a537f View commit details

Commits on Apr 27, 2018

  1. Add docker glossary

    Parinda Darden committed Apr 27, 2018
    Copy the full SHA
    b517c21 View commit details
  2. Add docker instructions to Intro to Rails

    Parinda Darden committed Apr 27, 2018
    Copy the full SHA
    9b53d44 View commit details
  3. Add docker glossary

    Parinda Darden committed Apr 27, 2018
    Copy the full SHA
    8ce625e View commit details
  4. Adds docker instructions for Job Board

    Parinda Darden committed Apr 27, 2018
    Copy the full SHA
    f39b76b View commit details

Commits on Apr 30, 2018

  1. Copy the full SHA
    dc4bbac View commit details

Commits on May 5, 2018

  1. Copy the full SHA
    fff45c4 View commit details
  2. Copy the full SHA
    b673cfa View commit details

Commits on May 8, 2018

  1. Copy the full SHA
    9788615 View commit details
  2. Copy the full SHA
    0d9b2a7 View commit details
  3. Merge branch 'expand-mvc-focus-for-intro-to-rails' of github.com:rail…

    …sbridge-nyc/docs into may-2018-workshop
    CZagrobelny committed May 8, 2018
    Copy the full SHA
    4502ae3 View commit details
  4. Merge branch 'add-hashes-to-ruby-basics' of github.com:railsbridge-ny…

    …c/docs into may-2018-workshop
    CZagrobelny committed May 8, 2018
    Copy the full SHA
    80b816f View commit details
  5. Copy the full SHA
    15a8f9f View commit details
  6. Copy the full SHA
    8ecbe67 View commit details
  7. Copy the full SHA
    04e955f View commit details

Commits on May 14, 2018

  1. Remove test active_support require

    Doesn't make sense for Docker. The math portion is sufficient.
    javierjulio committed May 14, 2018
    Copy the full SHA
    3d210b5 View commit details
  2. Remove exit output section

    This doesn't make sense to have with Docker. For now we'd rather remove it, although we could change this to move this into the Without Docker section and then in the With Docker section we could include the following exit output:
    
    ```
    Stopping suggestotron_web_1 ... done
    Stopping suggestotron_db_1  ... done
    Removing suggestotron_web_1     ... done
    Removing suggestotron_web_run_3 ... done
    Removing suggestotron_web_run_2 ... done
    Removing suggestotron_web_run_1 ... done
    Removing suggestotron_db_1      ... done
    Removing network suggestotron_default
    ```
    javierjulio committed May 14, 2018
    Copy the full SHA
    6cf9538 View commit details
  3. Copy the full SHA
    1f50e94 View commit details
  4. Copy the full SHA
    73534f4 View commit details
  5. Copy the full SHA
    7a88354 View commit details
  6. Copy the rails new info to both With/Without sections

    Since the With Docker section is much longer due to the content that has to be copied into files, it felt really weird to be reading about `rails new` and that it would take awhile to run and output a lot of info. I included this with slightly different wording for the With Docker section since it uses `.` as the rails app name which means the current directory.
    javierjulio committed May 14, 2018
    Copy the full SHA
    0851c55 View commit details
  7. Update Docker Glossary

    While we describe each command, they are not always helpful in the context of the workshop, so for example when describing `docker-compose down` we now mention that if you have a Rails server running, this is the command you use to stop it.
    javierjulio committed May 14, 2018
    Copy the full SHA
    1d9394a View commit details
  8. Remove --binstubs from install and any user use of bin/rails

    We need to remove the " --binstubs" portion otherwise after following the job_board instructions if you run a `bin/rails` command you get the following very verbose help output **mixed with the output of the actual command you ran** (e.g. generate a controller) so that info gets lost in the mix.
    
    If I do the job_board setup with a Dockerfile that does NOT have the "--binstubs" portion I can then run any normal `rails` commands without the verbose binstub output pasted below.
    
    What I don't understand is why I didn't run into this on the IntroToRails setup. After that when I started the JobBoard I was running into this verbose binstub output.
    
    ```
    job_board: (master) docker-compose run web rails generate controller jobs
    Starting job_board_db_1 ... done
    Beginning in Rails 4, Rails ships with a `rails` binstub at ./bin/rails that
    should be used instead of the Bundler-generated `rails` binstub.
    
    If you are seeing this message, your binstub at ./bin/rails was generated by
    Bundler instead of Rails.
    
    You might need to regenerate your `rails` binstub locally and add it to source
    control:
    
     rails app:update:bin           # Bear in mind this generates other binstubs
                                    # too that you may or may not want (like yarn)
    
    If you already have Rails binstubs in source control, you might be
    inadverently overwriting them during deployment by using bundle install
    with the --binstubs option.
    
    If your application was created prior to Rails 4, here's how to upgrade:
    
      bundle config --delete bin    # Turn off Bundler's stub generator
      rails app:update:bin          # Use the new Rails executables
      git add bin                   # Add bin/ to source control
    
    You may need to remove bin/ from your .gitignore as well.
    
    When you install a gem whose executable you want to use in your app,
    generate it and add it to source control:
    
      bundle binstubs some-gem-name
      git add bin/new-executable
    
          create  app/controllers/jobs_controller.rb
          invoke  erb
          create    app/views/jobs
          invoke  helper
          create    app/helpers/jobs_helper.rb
          invoke  assets
          invoke    coffee
          create      app/assets/javascripts/jobs.coffee
          invoke    scss
          create      app/assets/stylesheets/jobs.scss
    Usage:
      rails new APP_PATH [options]
    
    Options:
          [--skip-namespace], [--no-skip-namespace]            # Skip namespace (affects only isolated applications)
      -r, [--ruby=PATH]                                        # Path to the Ruby binary of your choice
                                                               # Default: /usr/local/bin/ruby
      -m, [--template=TEMPLATE]                                # Path to some application template (can be a filesystem path or URL)
      -d, [--database=DATABASE]                                # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
                                                               # Default: sqlite3
          [--skip-yarn], [--no-skip-yarn]                      # Don't use Yarn for managing JavaScript dependencies
          [--skip-gemfile], [--no-skip-gemfile]                # Don't create a Gemfile
      -G, [--skip-git], [--no-skip-git]                        # Skip .gitignore file
          [--skip-keeps], [--no-skip-keeps]                    # Skip source control .keep files
      -M, [--skip-action-mailer], [--no-skip-action-mailer]    # Skip Action Mailer files
      -O, [--skip-active-record], [--no-skip-active-record]    # Skip Active Record files
          [--skip-active-storage], [--no-skip-active-storage]  # Skip Active Storage files
      -P, [--skip-puma], [--no-skip-puma]                      # Skip Puma related files
      -C, [--skip-action-cable], [--no-skip-action-cable]      # Skip Action Cable files
      -S, [--skip-sprockets], [--no-skip-sprockets]            # Skip Sprockets files
          [--skip-spring], [--no-skip-spring]                  # Don't install Spring application preloader
          [--skip-listen], [--no-skip-listen]                  # Don't generate configuration that depends on the listen gem
          [--skip-coffee], [--no-skip-coffee]                  # Don't use CoffeeScript
      -J, [--skip-javascript], [--no-skip-javascript]          # Skip JavaScript files
          [--skip-turbolinks], [--no-skip-turbolinks]          # Skip turbolinks gem
      -T, [--skip-test], [--no-skip-test]                      # Skip test files
          [--skip-system-test], [--no-skip-system-test]        # Skip system test files
          [--skip-bootsnap], [--no-skip-bootsnap]              # Skip bootsnap gem
          [--dev], [--no-dev]                                  # Setup the application with Gemfile pointing to your Rails checkout
          [--edge], [--no-edge]                                # Setup the application with Gemfile pointing to Rails repository
          [--rc=RC]                                            # Path to file containing extra configuration options for rails command
          [--no-rc], [--no-no-rc]                              # Skip loading of extra configuration options from .railsrc file
          [--api], [--no-api]                                  # Preconfigure smaller stack for API only apps
      -B, [--skip-bundle], [--no-skip-bundle]                  # Don't run bundle install
          [--webpack=WEBPACK]                                  # Preconfigure for app-like JavaScript with Webpack (options: react/vue/angular/elm/stimulus)
    
    Runtime options:
      -f, [--force]                    # Overwrite files that already exist
      -p, [--pretend], [--no-pretend]  # Run but do not make any changes
      -q, [--quiet], [--no-quiet]      # Suppress status output
      -s, [--skip], [--no-skip]        # Skip files that already exist
    
    Rails options:
      -h, [--help], [--no-help]        # Show this help message and quit
      -v, [--version], [--no-version]  # Show Rails version number and quit
    
    Description:
        The 'rails new' command creates a new Rails application with a default
        directory structure and configuration at the path you specify.
    
        You can specify extra command-line arguments to be used every time
        'rails new' runs in the .railsrc configuration file in your home directory.
    
        Note that the arguments specified in the .railsrc file don't affect the
        defaults values shown above in this help message.
    
    Example:
        rails new ~/Code/Ruby/weblog
    
        This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
    ```
    javierjulio committed May 14, 2018
    Copy the full SHA
    8009343 View commit details
  9. Copy the full SHA
    a564269 View commit details
  10. Merge pull request #9 from railsbridge-nyc/may-2018-workshop

    May 2018 workshop
    Christine Zagrobelny authored May 14, 2018
    Copy the full SHA
    36df64d View commit details

Commits on May 19, 2018

  1. Copy the full SHA
    78c6dda View commit details

Commits on May 30, 2018

  1. Removes server.pid file before starting rails server. Adds .dockerign…

    …ore file to instructions.
    Parinda Darden committed May 30, 2018
    Copy the full SHA
    610687f View commit details

Commits on Jun 1, 2018

  1. Merge pull request #10 from railsbridge-nyc/docker-server-fix

    Removes server.pid file before starting rails server.  Adds .dockerig…
    Christine Zagrobelny authored Jun 1, 2018
    Copy the full SHA
    196c856 View commit details
Showing with 842 additions and 257 deletions.
  1. BIN public/img/docker.png
  2. +19 −0 sites/en/installfest/_docker-glossary.md
  3. +9 −0 sites/en/installfest/choose_your_operating_system.step
  4. +4 −0 sites/en/installfest/clean_up.step
  5. +4 −1 sites/en/installfest/create_a_rails_app.step
  6. +155 −0 sites/en/installfest/create_a_rails_app_with_docker.step
  7. +4 −0 sites/en/installfest/deploy_a_rails_app.step
  8. +38 −0 sites/en/installfest/docker.step
  9. +23 −13 sites/en/installfest/get_a_sticker.step
  10. +8 −1 sites/en/installfest/glossary.step
  11. +39 −74 sites/en/intro-to-rails/CRUD_with_scaffolding.step
  12. +2 −0 sites/en/intro-to-rails/_deploying_to_heroku.step
  13. +19 −0 sites/en/intro-to-rails/_docker-glossary.md
  14. +59 −23 sites/en/intro-to-rails/creating_a_migration.step
  15. +100 −8 sites/en/intro-to-rails/getting_started.step
  16. +8 −1 sites/en/intro-to-rails/glossary.step
  17. +1 −0 sites/en/intro-to-rails/hooking_up_votes_and_topics.step
  18. BIN sites/en/intro-to-rails/img/Topics_Index_File_Viewed_In_Sublime.png
  19. BIN sites/en/intro-to-rails/img/mvc.png
  20. BIN sites/en/intro-to-rails/img/request-cycle.png
  21. +24 −15 sites/en/intro-to-rails/intro-to-rails.step
  22. +0 −53 sites/en/intro-to-rails/rails_architecture.step
  23. +75 −45 sites/en/intro-to-rails/ruby_language.step
  24. +17 −11 sites/en/intro-to-rails/running_your_application_locally.step
  25. +1 −0 sites/en/intro-to-rails/setting_the_default_page.step
  26. +86 −0 sites/en/intro-to-rails/the_request_cycle_and_rails_architecture.step
  27. +1 −0 sites/en/intro-to-rails/voting_on_topics.step
  28. +124 −12 sites/en/job-board/create_a_rails_app.step
  29. +22 −0 sites/en/job-board/job-board.step
Binary file added public/img/docker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions sites/en/installfest/_docker-glossary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
**docker-compose run web <<commands>>** will runs given commands in web service container.

**docker-compose run web rails c** will run rails console in web service container.

**docker-compose run web bash** runs bash to interact with the directory inside
the web service container. You can also use this to run Rails commands such as `rails console` too.

**docker-compose build** will build an image when `Dockerfile` changes or when you want to update or add gems.

**docker-compose up** starts up the containers.

**docker-compose up -d** starts up the containers **in the background**.

**docker-compose down** stops containers. If you have a Rails server running, this is how you stop it.

**docker-compose ps** lists container processes, container name, container id.

**docker attach <<contianer_name>>** attaches to the named container to interact
with `binding.pry`. `Control + p`, `Control + q`, detach from container.
9 changes: 9 additions & 0 deletions sites/en/installfest/choose_your_operating_system.step
Original file line number Diff line number Diff line change
@@ -18,3 +18,12 @@ div(class: "os-button") do
h3 "Linux"
end
end

h2 "Or install Docker"

div(class: "os-button") do
simple_link "docker" do
img src: "/img/docker.png"
h3 "Docker"
end
end
4 changes: 4 additions & 0 deletions sites/en/installfest/clean_up.step
Original file line number Diff line number Diff line change
@@ -20,3 +20,7 @@ step "Delete the test_app from your computer" do
console "rm -rf ~/railsbridge/test_app"
end
end

step "Delete the test_app Docker image from your computer" do
console "docker rmi test_app_web"
end
5 changes: 4 additions & 1 deletion sites/en/installfest/create_a_rails_app.step
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
tip do
message "**WAIT! If you are using Docker, SKIP this page and go to [Create a Rails App with Docker] (create_a_rails_app_with_docker)**"
end

tip do
console_with_message "From here on, this guide assumes you have Rails 5.0.x. To check your Rails version, type this in the terminal:", "rails -v"
fuzzy_result "Rails 5.0{FUZZY}.x{/FUZZY}"
@@ -102,4 +106,3 @@ step "Generate a database model" do
end

next_step "deploy_a_rails_app"

155 changes: 155 additions & 0 deletions sites/en/installfest/create_a_rails_app_with_docker.step
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
step "Change to your home directory" do
insert 'switch_to_home_directory'
end

step "Create a railsbridge directory" do
console "mkdir railsbridge"
message "`mkdir` stands for make directory (folder)."
message "We've made a folder called `railsbridge`."
end

step "Change to your new railsbridge directory" do
console "cd railsbridge"
end

step "Create a new Rails app" do
console "mkdir test_app"
console "cd test_app"

message "In your editor, create a new file called `Gemfile`"
message "Copy the following into `Gemfile`:"
source_code :ruby, <<-CONTENTS
source "https://rubygems.org"
gem "rails", "5.2.0"
CONTENTS
console "touch Gemfile.lock"

message "In your editor, create a new file called `Dockerfile`:"
message "Copy the following into `Dockerfile`:"
source_code :text, <<-CONTENTS
FROM ruby:2.5.1-slim

RUN apt-get update -qq && apt-get install -y build-essential libpq-dev git vim nodejs postgresql-client build-essential

ENV APP_HOME /test_app
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
COPY Gemfile* $APP_HOME/
RUN bundle install
COPY . $APP_HOME
CONTENTS

message "In your editor, create a new file called `docker-compose.yml`:"
message "Copy the following into `docker-compose.yml`:"
source_code :text, <<-CONTENTS
version: '3'
services:
db:
image: postgres:10.3
volumes:
- db_data:/var/lib/postgresql/data
web:
build: .
environment:
DATABASE_URL: db
tty: true
stdin_open: true
volumes:
- .:/test_app
command: bash -c 'rm -rf /test_app/tmp/pids/server.pid && bin/rails s -p 3000 -b 0.0.0.0'
ports:
- "3000:3000"
depends_on:
- db
volumes:
db_data:
driver: local
CONTENTS

message "In your editor, create a new file called `.dockerignore`:"
message "Copy the following into `.dockerignore`:"
source_code :text, <<-CONTENTS
.git
.dockerignore
.byebug_history
log/*
tmp/*
Dockerfile
README.md
CONTENTS

message "Build your rails app:"
console "docker-compose run web rails new . --force --database=postgresql"
console "docker-compose build"

message "Setup the database:"
message "In your editor, open up `config/database.yml` and change it to the following:"
source_code :ruby, <<-CONTENTS
default: &default
adapter: postgresql
encoding: unicode
username: postgres
password:
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: <%= ENV.fetch("DATABASE_URL") %>
development:
<<: *default
database: test_app_development
test:
<<: *default
database: test_app_test
production:
<<: *default
database: test_app_production
password: <%= ENV['APP_DATABASE_PASSWORD'] %>
CONTENTS
console "docker-compose run web rails db:create"
console "docker-compose run web rails db:migrate"

console "docker-compose up"
tip "`docker-compose up` will execute the command, `bin/rails s -p 3000 -b '0.0.0.0'`, in `docker-compose.yml`"

message "In your browser, go to <http://localhost:3000>"
img src: "img/successful_rails_install.png", alt: "Screenshot of the browser on localhost 3000 showing the rails intro page"

message "Open a new terminal tab, and stop the server."
console "docker-compose down"
end

step "Generate a database model" do
tip "If your prompt doesn't already show that you are (still) in the test_app folder" do
console "cd test_app"
end

message "Run the following in terminal:"
console "docker-compose run web bash"

console <<-BASH
rails generate scaffold drink name:string temperature:integer
BASH

console <<-BASH
rails db:migrate
BASH

message "Open another tab in terminal to bring the rails server up in Docker with:"
console <<-BASH
docker-compose up
BASH

message <<-MARKDOWN
In the browser, visit <http://localhost:3000/drinks>

1. Click on "New drink"
2. Enter Cappuccino for the name
3. Enter 135 for the temperature.
4. Click on "Create Drink".

You should see: ![Screenshot of the drink detail page](img/get_a_sticker_you_should_see.png)

MARKDOWN
message "Open a new terminal tab, and stop the server."
console "docker-compose down"
end

next_step "deploy_a_rails_app"
4 changes: 4 additions & 0 deletions sites/en/installfest/deploy_a_rails_app.step
Original file line number Diff line number Diff line change
@@ -55,6 +55,10 @@ step "Deploy your app to Heroku" do
end

step "Prepare your rails app for deploying to Heroku" do
tip do
message "**WAIT! If you are using Docker, SKIP this step and proceed to Step 2.3**"
end

message <<-MARKDOWN
Launch your text editor and open the "Gemfile" file located inside of your test_app folder. (On Windows, this should be in `C:\\Sites\\railsbridge\\test_app` and on Linux/OS X, it should be under `~/railsbridge/test_app`.)

38 changes: 38 additions & 0 deletions sites/en/installfest/docker.step
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
step "Install Docker" do
option "Docker for Mac" do
message "Visit [Docker for Mac download page](https://store.docker.com/editions/community/docker-ce-desktop-mac)"
message "Download and install the **Stable** verion"
end

option "Docker for Windows" do
message "Visit [Docker for Windows download page](https://store.docker.com/editions/community/docker-ce-desktop-windows)"
message "Download and install the **Stable** version"
end

option "Docker for Ubuntu" do
message "Visit [Docker for Ubuntu download page](https://store.docker.com/editions/community/docker-ce-server-ubuntu)"
message "Download and install the **Stable** version"
end

option "Docker for other platforms" do
message "Visit the [Docker Community Edition Downloads Page](https://www.docker.com/community-edition)"
end
end

step "Install Git" do
option "Macintosh" do
message "Follow Step 1 through Step 4 in OSX Rvm"
link "osx_rvm"
end

option "Windows" do
message "Go to <http://git-scm.com> and download and run the installer."
end

option "Ubuntu" do
message "Open a terminal (Applications > Accessories > Terminal)."
console "sudo apt-get install git"
end
end

next_step "configure_git"
36 changes: 23 additions & 13 deletions sites/en/installfest/get_a_sticker.step
Original file line number Diff line number Diff line change
@@ -4,27 +4,37 @@ step "Have a volunteer check your tool versions" do

verify "tool installation" do

tip "Most of the time, the version numbers don't have to match exactly. In general, if the *first two* numbers match, or if the full number you have is *greater* than the one below, then you're cool."
option_half "Without Docker" do
tip "Most of the time, the version numbers don't have to match exactly. In general, if the *first two* numbers match, or if the full number you have is *greater* than the one below, then you're cool."

h3 "If you're on OSX or Linux:"
h3 "If you're on OSX or Linux:"

console "rvm -v"
fuzzy_result "rvm 1{FUZZY}.x.x by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.io/]{/FUZZY}"
console "rvm -v"
fuzzy_result "rvm 1{FUZZY}.x.x by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.io/]{/FUZZY}"

h3 "On all operating systems:"
h3 "On all operating systems:"

console "ruby -v"
fuzzy_result "ruby 2.3{FUZZY}.3p222 (2015-12-16 revision 53155) [x86_64-darwin13]{/FUZZY}"
console "ruby -v"
fuzzy_result "ruby 2.3{FUZZY}.3p222 (2015-12-16 revision 53155) [x86_64-darwin13]{/FUZZY}"

tip "As long as your Ruby version is #{version_string(:ruby_short)} or above, you're good to go."
tip "As long as your Ruby version is #{version_string(:ruby_short)} or above, you're good to go."

console "bundle -v"
fuzzy_result "Bundler version 1{FUZZY}.x.x{/FUZZY}"
console "bundle -v"
fuzzy_result "Bundler version 1{FUZZY}.x.x{/FUZZY}"

console "rails -v"
fuzzy_result "Rails 5.0{FUZZY}.x{/FUZZY}"
console "rails -v"
fuzzy_result "Rails 5.0{FUZZY}.x{/FUZZY}"

tip 'The RailsBridge curriculum is written for Rails 5, so if you still have Rails 4.x or earlier, you need to install Rails 5 with `gem install rails`.'
tip 'The RailsBridge curriculum is written for Rails 5, so if you still have Rails 4.x or earlier, you need to install Rails 5 with `gem install rails`.'
end

option_half "With Docker" do
message "The following should output `ruby` version `2.5.1-slim` and `postgres` version `10.3`:"
console "docker images"

console "docker-compose run web rails -v"
fuzzy_result "Rails 5.2.0"
end
end
end

9 changes: 8 additions & 1 deletion sites/en/installfest/glossary.step
Original file line number Diff line number Diff line change
@@ -4,8 +4,10 @@ span "Have a look at the "
a 'general Glossary', href: '#general-glossary'
span ", the "
a 'Command Line Glossary', href: '#command-line-glossary'
span ", and the "
span ", the "
a 'Ruby and Rails Glossary', href: '#ruby-and-rails-glossary'
span ", and the "
a 'Docker Glossary', href: '#docker-glossary'
span "."

a name: 'general-glossary'
@@ -22,3 +24,8 @@ a name: 'ruby-and-rails-glossary'
situation "Ruby and Rails Glossary" do
insert 'ruby-and-rails-glossary'
end

a name: 'docker-glossary'
situation "Docker Glossary" do
insert 'docker-glossary'
end
Loading