SlideShare uma empresa Scribd logo
1 de 64
Baixar para ler offline
Ruby on Rails
  3-Day BootCamp




                   1
Introductions


Name

Coding Experience

What would you like to learn?




                                2
Curriculum

RoR Toolset

Rails Walk-Through

Gems and Deployment

Full Apps and Ruby inside Rails




                                  3
Schedule
   Times         Day 1           Day 2           Day3
9am - 10:30      Tools        RubyToolBox     BootStrap
   Break
              Scaffold and                   RailsApps and
10:45 - 12                     Cucumber
                 Views                       Hobo / Spree
   Lunch
              Routes and
1pm - 2:30                      Devise        Calculator
              Controllers
   Break

               Models and
2:45 - 4:30                  I18N and Haml    Translator
                Testing

                                                             4
Learning Goals


Basic Rails

Common Patterns and Practices

Where to go for help




                                5
Learning Path

Experimentation

Test First Teaching

Ask Questions

Resources for finding answers




                                6
Structure

Explanation (me talking)

Demonstration (me typing)

Experimentation (in-class coding)

Questions




                                    7
RoR Tools
RVM / Pik / Jewelry Box / Rb.Env

Git / Github / Heroku

Sublime / Vi / RubyMine

RubyGems / RubyToolbox

Testing / RSpec / Cucumber

Terminal / irb / Rails Console


                                   8
RoR Resources
      RailsGuides - guides.rubyonrails.org

      Rails API - api.rubyonrails.org

      RubyDoc - ruby-doc.org

      RailsCasts - railscasts.com

      Github ReadMe

      Ruby ToolBox - www.ruby-toolbox.com


                                             9


	 •	RailsGuides - guides.rubyonrails.org

	 •	Rails API - api.rubyonrails.org

	 •	RubyDoc - ruby-doc.org

	 •	RailsCasts - railscasts.com

	 •	Github ReadMe

	 •	Ruby ToolBox - www.ruby-toolbox.com
Ruby vs. Rails
Ruby is the Language -

  developed 1993

  Yukihiro Matsumoto “Matz”



Rails is the Framework -

  developed 2004

  David Heinemeier Hansson “DHH”

                                   10
The Ruby Way
Written in C

Influenced by SmallTalk & Pearl

Ruby is for People

MINSWAN

OSS (Open Source Software)

RubyGems


                                  11
The Rails Way

Opinionated Software

Convention over Configuration

DRY (Don’t Repeat Yourself)

TDD (Test Driven Development)

Less Code, More Productivity



                                12
Tools
Command Line

Ruby / RubyGems

Rails

Source Control - Git

IDE

Deployment - Heroku


                       13
Command Line

Command Prompt (CLI)

Mac: Terminal, iTerm, etc...

Unix: bash, zsh, csh, etc....

Windows: Command Prompt w/ Ruby on
Rails



                                     14
Ruby

Ruby -v

  1.9.2, 1.9.3, 2.0.0 (1.8.7)

gem list

  Bundler, Rake, rubygems, etc...




                                    15
RVM
Ruby Version Manager

 rvm list

 rvm use

 rvm gemset list

             rvm.io




                       16
Ruby Versions
MRI, YARV, Standard Library, C-Ruby

JRuby - Java

Rubinius - Pure Ruby

MagLev - SmallTalk

MacRuby - Objective-C

IronRuby - C# (for .Net)


                                      17
Rails



Rails -v

  2.0-3, 3.0-2, 4.0




                      18
RVM Demo
Gemset for Rails 4

  rvm use --create 2.0.0@rails4

  gem install rails   --version 4.0.0.beta1

  mkdir rvm_test

  cd rvm_test

  rvm --rvmrc --create


                                              19
Git



which git

git --version




                      20
Git

Source Control System

Timeline, Track Changes

Branching and Merging

Code Safety




                          21
Git Commands
git clone / init

git status

git add / rm

git commit

git push

git log


                    22
Git Remotes



GitHub - www.github.com

Heroku - www.heroku.com




                          23
Git Help


Git Site - git-scm.com

Git Immersion - gitimmersion.com

GitHub Help - help.github.com




                                   24
Git Demo
mkdir git_test

cd git_test

git init

touch test_file.txt

git status

git add .

git commit -m “add a file”

git status

                             25
Git Demo
cd ..

git clone git_test/.git clone_test

cd clone_test

ls

git remote -v

touch clone.txt

git commit -am “add another file”

git push

                                     26
Editor

Sublime Text 2 / TextMate

RubyMine

KomodoEdit

Eclipse

Vi / Vim / Emacs



                            27
Sublime Text 2

              Command line alias
                   Win: doskey subl="C:Program FilesSublime Text 2sublime_text.exe" $*


                   Mac: ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl


                   Linux: sudo ln -s /opt/SublimeText2/sublime_text /usr/bin/subl




              How to Open a folder




                                                                                                              28

Command line alias
Win: doskey subl="C:Program FilesSublime Text 2sublime_text.exe" $*
Mac: ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
Linux: sudo ln -s /opt/SublimeText2/sublime_text /usr/bin/subl
How to Open a folder
BREAK!



10-15 minutes




                    29
Rails

New Rails App

Modify the HomePage

Scaffold

MVC

Layers



                      30
Create a New App


rails

  Shows Options

rails new <app_name> --options




                                 31
Create a
        Class Management App

              We want an app to manage Students,
              Classes, and Teachers

              rails new class_mngmt




                                                   32

rails new class_mngmt
The Application
     Directory


The Root of our App: Rails root

Entire App in one directory!




                                  33
Run the App

               cd class_mngmt

               rails

                 see rails commands

               rails server




                                      34

rails server
Save a Baseline
                         with git

               git init

               git add .

               git commit -m “add a bare rails app
               to track changes”




                                                     35

git init
git add .
git commit -m “add bare rails app to track”
Modify the HomePage



public/index.html

public folder contains static content




                                        36
Scaffolding


                rails generate

                     see the generators

                rails g scaffold Student full_name
                age:integer bio:text title




                                                                37

rails g scaffold Student full_name age:integer bio:text title
MVC
          Response

                         Controller

          Request
Browser

           View


                             Model



                  Database
                                      38
Shorten Bio Demo



Shorten the bio on the view page

Add a read more link




                                   39
Helpers

Presentation Logic

Presenter Pattern

Ruby Module - Included on all views

Method Definitions

Help generate html



                                      40
View Exercise

On the main Student page

  Change the Listing Students to My
  Students or All Students

  Show only the Full Name and title

  Have the Full Name link to the
  view page



                                      41
Lunch!



12pm - 1pm




                      42
Routing



rake routes

public folder




                    43
hello.html



create a hello file

find it in the browser




                         44
RESTful Routes


Representational State Transfer
(REST)

guides.rubyonrails.org/routing.html




                                      45
Controller Actions



index, show, new, edit, create,
update, destroy




                                  46
New Controller



rails g controller Welcome




                             47
Welcome



put hello.html in the welcome folder

app/views/welcome/hello.html




                                       48
Find it!



http://localhost:3000/welcome/hello




                                      49
Break!



10-15 minutes




                    50
Active Record



Ruby Driven Schema

Where are the methods?




                         51
Students Manage
   Their Courses


As a student we want to add our
courses.




                                  52
Add Courses



rails g Course title description:text
student_id:integer




                                        53
Relationships



Student has many courses

A Course belongs_to a Student




                                54
3 Kinds of
    Relationships

one-to-one

one-to-many

many-to-many




                    55
Rails DB / Console

rails db

  login with the db credentials

rails console

  irb with your app loaded




                                  56
Add email to Student



 rails g migration AddEmailToStudents
 email




                                        57
Test Driven Rails



add rspec

test drive our business rules




                                58
Validations &
      callbacks

guides.rubyonrails.org/
active_record_validations_callbacks.h
tml

Validate a Student has a name




                                        59
Validate the student
       email


 presence and format




                       60
Scopes and QI


saved sql queries

http://guides.rubyonrails.org/
active_record_querying.html




                                 61
Environments


development

test

production




                      62
Rails App Walk
      Through


What is all this stuff?!




                           63
Questions?



??




                  64

Mais conteúdo relacionado

Mais procurados

LinkedIn - Disassembling Dalvik Bytecode
LinkedIn - Disassembling Dalvik BytecodeLinkedIn - Disassembling Dalvik Bytecode
LinkedIn - Disassembling Dalvik BytecodeAlain Leon
 
Codifying the Build and Release Process with a Jenkins Pipeline Shared Library
Codifying the Build and Release Process with a Jenkins Pipeline Shared LibraryCodifying the Build and Release Process with a Jenkins Pipeline Shared Library
Codifying the Build and Release Process with a Jenkins Pipeline Shared LibraryAlvin Huang
 
Golang Project Layout and Practice
Golang Project Layout and PracticeGolang Project Layout and Practice
Golang Project Layout and PracticeBo-Yi Wu
 
Localization (l10n) - The Process
Localization (l10n) - The ProcessLocalization (l10n) - The Process
Localization (l10n) - The ProcessSundeep Anand
 
Understanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer toolUnderstanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer toolGabor Paller
 

Mais procurados (7)

Using Hg
Using HgUsing Hg
Using Hg
 
LinkedIn - Disassembling Dalvik Bytecode
LinkedIn - Disassembling Dalvik BytecodeLinkedIn - Disassembling Dalvik Bytecode
LinkedIn - Disassembling Dalvik Bytecode
 
Dancing with dalvik
Dancing with dalvikDancing with dalvik
Dancing with dalvik
 
Codifying the Build and Release Process with a Jenkins Pipeline Shared Library
Codifying the Build and Release Process with a Jenkins Pipeline Shared LibraryCodifying the Build and Release Process with a Jenkins Pipeline Shared Library
Codifying the Build and Release Process with a Jenkins Pipeline Shared Library
 
Golang Project Layout and Practice
Golang Project Layout and PracticeGolang Project Layout and Practice
Golang Project Layout and Practice
 
Localization (l10n) - The Process
Localization (l10n) - The ProcessLocalization (l10n) - The Process
Localization (l10n) - The Process
 
Understanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer toolUnderstanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer tool
 

Semelhante a PDF Ruby on Rails 3 Day BC

Ruby On Rails Introduction
Ruby On Rails IntroductionRuby On Rails Introduction
Ruby On Rails IntroductionThomas Fuchs
 
Ruby on-rails-101-presentation-slides-for-a-five-day-introductory-course-1194...
Ruby on-rails-101-presentation-slides-for-a-five-day-introductory-course-1194...Ruby on-rails-101-presentation-slides-for-a-five-day-introductory-course-1194...
Ruby on-rails-101-presentation-slides-for-a-five-day-introductory-course-1194...Nilesh Panchal
 
JRuby, Ruby, Rails and You on the Cloud
JRuby, Ruby, Rails and You on the CloudJRuby, Ruby, Rails and You on the Cloud
JRuby, Ruby, Rails and You on the CloudHiro Asari
 
20100730 phpstudy
20100730 phpstudy20100730 phpstudy
20100730 phpstudyYusuke Ando
 
Rails入門與新人實戰經驗分享
Rails入門與新人實戰經驗分享Rails入門與新人實戰經驗分享
Rails入門與新人實戰經驗分享wildjcrt
 
Behavioural Testing Ruby/Rails Apps @ Scale - Rspec & Cucumber
       Behavioural Testing Ruby/Rails Apps @ Scale - Rspec & Cucumber       Behavioural Testing Ruby/Rails Apps @ Scale - Rspec & Cucumber
Behavioural Testing Ruby/Rails Apps @ Scale - Rspec & CucumberUdaya Kiran
 
Rails Rookies Bootcamp - Blogger
Rails Rookies Bootcamp - BloggerRails Rookies Bootcamp - Blogger
Rails Rookies Bootcamp - BloggerNathanial McConnell
 
Instruments ruby on rails
Instruments ruby on railsInstruments ruby on rails
Instruments ruby on railspmashchak
 
Ruby on rails探索
Ruby on rails探索Ruby on rails探索
Ruby on rails探索Mu Chun Wang
 
Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1Mark Menard
 
Dockercon EU 2014
Dockercon EU 2014Dockercon EU 2014
Dockercon EU 2014Rafe Colton
 
Building Application with Ruby On Rails Framework
Building Application with Ruby On Rails FrameworkBuilding Application with Ruby On Rails Framework
Building Application with Ruby On Rails FrameworkEdureka!
 
The Tale of a Docker-based Continuous Delivery Pipeline by Rafe Colton (ModCl...
The Tale of a Docker-based Continuous Delivery Pipeline by Rafe Colton (ModCl...The Tale of a Docker-based Continuous Delivery Pipeline by Rafe Colton (ModCl...
The Tale of a Docker-based Continuous Delivery Pipeline by Rafe Colton (ModCl...Docker, Inc.
 
Contribute to rails
Contribute to railsContribute to rails
Contribute to railsmartinsvalin
 

Semelhante a PDF Ruby on Rails 3 Day BC (20)

Ruby on Rails 3 Day BC
Ruby on Rails 3 Day BCRuby on Rails 3 Day BC
Ruby on Rails 3 Day BC
 
Ruby On Rails Introduction
Ruby On Rails IntroductionRuby On Rails Introduction
Ruby On Rails Introduction
 
Ruby on-rails-101-presentation-slides-for-a-five-day-introductory-course-1194...
Ruby on-rails-101-presentation-slides-for-a-five-day-introductory-course-1194...Ruby on-rails-101-presentation-slides-for-a-five-day-introductory-course-1194...
Ruby on-rails-101-presentation-slides-for-a-five-day-introductory-course-1194...
 
Dev streams2
Dev streams2Dev streams2
Dev streams2
 
JRuby, Ruby, Rails and You on the Cloud
JRuby, Ruby, Rails and You on the CloudJRuby, Ruby, Rails and You on the Cloud
JRuby, Ruby, Rails and You on the Cloud
 
20100730 phpstudy
20100730 phpstudy20100730 phpstudy
20100730 phpstudy
 
Supa fast Ruby + Rails
Supa fast Ruby + RailsSupa fast Ruby + Rails
Supa fast Ruby + Rails
 
Rails入門與新人實戰經驗分享
Rails入門與新人實戰經驗分享Rails入門與新人實戰經驗分享
Rails入門與新人實戰經驗分享
 
Behavioural Testing Ruby/Rails Apps @ Scale - Rspec & Cucumber
       Behavioural Testing Ruby/Rails Apps @ Scale - Rspec & Cucumber       Behavioural Testing Ruby/Rails Apps @ Scale - Rspec & Cucumber
Behavioural Testing Ruby/Rails Apps @ Scale - Rspec & Cucumber
 
Ruby On Rails
Ruby On RailsRuby On Rails
Ruby On Rails
 
Rails Rookies Bootcamp - Blogger
Rails Rookies Bootcamp - BloggerRails Rookies Bootcamp - Blogger
Rails Rookies Bootcamp - Blogger
 
Instruments ruby on rails
Instruments ruby on railsInstruments ruby on rails
Instruments ruby on rails
 
Clean Code V2
Clean Code V2Clean Code V2
Clean Code V2
 
Ruby on rails探索
Ruby on rails探索Ruby on rails探索
Ruby on rails探索
 
Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1
 
Dockercon EU 2014
Dockercon EU 2014Dockercon EU 2014
Dockercon EU 2014
 
Building Application with Ruby On Rails Framework
Building Application with Ruby On Rails FrameworkBuilding Application with Ruby On Rails Framework
Building Application with Ruby On Rails Framework
 
TorqueBox
TorqueBoxTorqueBox
TorqueBox
 
The Tale of a Docker-based Continuous Delivery Pipeline by Rafe Colton (ModCl...
The Tale of a Docker-based Continuous Delivery Pipeline by Rafe Colton (ModCl...The Tale of a Docker-based Continuous Delivery Pipeline by Rafe Colton (ModCl...
The Tale of a Docker-based Continuous Delivery Pipeline by Rafe Colton (ModCl...
 
Contribute to rails
Contribute to railsContribute to rails
Contribute to rails
 

Último

Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/siemaillard
 
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxHVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxKunal10679
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatmentsaipooja36
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxheathfieldcps1
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryEugene Lysak
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxNehaChandwani11
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIagpharmacy11
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Denish Jangid
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Celine George
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya - UEM Kolkata Quiz Club
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...Nguyen Thanh Tu Collection
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 

Último (20)

Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxHVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptx
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 

PDF Ruby on Rails 3 Day BC

Notas do Editor

  1. • RailsGuides - guides.rubyonrails.org • Rails API - api.rubyonrails.org • RubyDoc - ruby-doc.org • RailsCasts - railscasts.com • Github ReadMe • Ruby ToolBox - www.ruby-toolbox.com
  2. Command line aliasWin: doskey subl=&quot;C:\\Program Files\\Sublime Text 2\\sublime_text.exe&quot; $*Mac: ln -s &quot;/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl&quot; ~/bin/sublLinux: sudo ln -s /opt/SublimeText2/sublime_text /usr/bin/sublHow to Open a folder
  3. rails new class_mngmt
  4. rails server
  5. git init git add . git commit -m “add bare rails app to track”
  6. rails g scaffold Student full_name age:integer bio:text title