SlideShare ist ein Scribd-Unternehmen logo
1 von 50
Downloaden Sie, um offline zu lesen
Rails Tools
Dan Bunker
http://www.linkedin.com/in/bunkerdan
Friday, May 10, 2013
Gemfile
Friday, May 10, 2013
Gemfile
 Keeps track of all dependencies in your project
Friday, May 10, 2013
Gemfile
 Keeps track of all dependencies in your project
 Specify alternate gem repositories (like a corporate gem repo)
Friday, May 10, 2013
Gemfile
 Keeps track of all dependencies in your project
 Specify alternate gem repositories (like a corporate gem repo)
 Group dependencies by environment
Friday, May 10, 2013
 Add a gem dependency
 gem‘gem_name’
 gem‘gem_name’,‘version’
 gem‘gem_name’,‘git_repo’
Gemfile
 Keeps track of all dependencies in your project
 Specify alternate gem repositories (like a corporate gem repo)
 Group dependencies by environment
Friday, May 10, 2013
Database Migrations in Depth
 Keep your database structure in sync in all environments
 Development (Bleeding Edge)
 Testing (Close to development or slightly behind)
 Production (Behind testing and development)
Friday, May 10, 2013
Database Migrations in Depth
 Keep your database structure in sync in all environments
 Development (Bleeding Edge)
 Testing (Close to development or slightly behind)
 Production (Behind testing and development)
 schema_migrations table used to track versions
Friday, May 10, 2013
Database Migrations in Depth
 Keep your database structure in sync in all environments
 Development (Bleeding Edge)
 Testing (Close to development or slightly behind)
 Production (Behind testing and development)
Development
Version 9
App
release 1.3
 schema_migrations table used to track versions
Friday, May 10, 2013
Database Migrations in Depth
 Keep your database structure in sync in all environments
 Development (Bleeding Edge)
 Testing (Close to development or slightly behind)
 Production (Behind testing and development)
Testing
Version 6
App
release 1.2
Development
Version 9
App
release 1.3
 schema_migrations table used to track versions
Friday, May 10, 2013
Database Migrations in Depth
 Keep your database structure in sync in all environments
 Development (Bleeding Edge)
 Testing (Close to development or slightly behind)
 Production (Behind testing and development)
Production
Version 3
App
release 1.1
Testing
Version 6
App
release 1.2
Development
Version 9
App
release 1.3
 schema_migrations table used to track versions
Friday, May 10, 2013
Data Seeding
 Load preferences, lookups or other needed data
Friday, May 10, 2013
Data Seeding
 Load preferences, lookups or other needed data
 Seed data goes in db/seeds.rb
Friday, May 10, 2013
Data Seeding
 Load preferences, lookups or other needed data
 Seed data goes in db/seeds.rb
 rake db:seed
Friday, May 10, 2013
Generators Overview
Friday, May 10, 2013
Generators Overview
 Generators create boilerplate code for pieces of your application
Friday, May 10, 2013
 Rails provides a set of default generators
 “rails generate”or“rails generate --help”
Generators Overview
 Generators create boilerplate code for pieces of your application
Friday, May 10, 2013
 Rails provides a set of default generators
 “rails generate”or“rails generate --help”
Generators Overview
 Generators create boilerplate code for pieces of your application
 Gems can provide generators and you can write your own custom
generators
Friday, May 10, 2013
Generating Models
Friday, May 10, 2013
Generating Models
 Model generator creates an ActiveRecord model and a migration
Friday, May 10, 2013
Generating Models
 Model generator creates an ActiveRecord model and a migration
 Pass in attributes and their data types to leverage more code
generation
Friday, May 10, 2013
Generating Models
 Model generator creates an ActiveRecord model and a migration
 Pass in attributes and their data types to leverage more code
generation
 rails generate model model_name attr1:string attr2:integer etc.
Friday, May 10, 2013
Generating Controllers
Friday, May 10, 2013
Generating Controllers
 Controller generator will create a controller and folder stubs for its views
Friday, May 10, 2013
Generating Controllers
 Controller generator will create a controller and folder stubs for its views
 Pass in actions to have the generator create view stub files for the actions
Friday, May 10, 2013
Generating Controllers
 Controller generator will create a controller and folder stubs for its views
 Pass in actions to have the generator create view stub files for the actions
 rails generate controller contr_name action1 action 2
Friday, May 10, 2013
Rails Console Overview
Friday, May 10, 2013
Rails Console Overview
 Interactive interpreter with your rails project loaded
Friday, May 10, 2013
Rails Console Overview
 Interactive interpreter with your rails project loaded
 Good way to become familiar with code or features or to debug
Friday, May 10, 2013
Rails Console Overview
 Interactive interpreter with your rails project loaded
 Start the rails console with the following command
 rails console
 rails console production
 Good way to become familiar with code or features or to debug
Friday, May 10, 2013
Rails DB Console
Friday, May 10, 2013
Rails DB Console
 A wrapper around your database console
Friday, May 10, 2013
Rails DB Console
 A wrapper around your database console
 An easy way to deal with MySQL, PostgreSQL and SQLite
Friday, May 10, 2013
Rails DB Console
 A wrapper around your database console
 Start the rails db console with the following command
 rails dbconsole
 rails dbconsole production -p
 An easy way to deal with MySQL, PostgreSQL and SQLite
Friday, May 10, 2013
Other Rake Tasks
Friday, May 10, 2013
Other Rake Tasks
 rake about
Friday, May 10, 2013
Other Rake Tasks
 rake about
 rake stats
Friday, May 10, 2013
Other Rake Tasks
 rake about
 rake stats
 rake test
Friday, May 10, 2013
Asset Pipeline Overview
Friday, May 10, 2013
Asset Pipeline Overview
 Framework for images, JS and CSS resources
Friday, May 10, 2013
Asset Pipeline Overview
 Framework for images, JS and CSS resources
 Rails asset pipeline will auto minify and compress JS and CSS
Friday, May 10, 2013
Asset Pipeline Overview
 Framework for images, JS and CSS resources
 Rails asset pipeline will auto minify and compress JS and CSS
 Asset pipeline supports enhanced languages such as CoffeeScript and
SASS
Friday, May 10, 2013
Summary
Friday, May 10, 2013
Summary
 Gemfiles and dependencies
Friday, May 10, 2013
Summary
 Gemfiles and dependencies
 Database Migrations
Friday, May 10, 2013
Summary
 Gemfiles and dependencies
 Database Migrations
 Data seeding
Friday, May 10, 2013
Summary
 Gemfiles and dependencies
 Database Migrations
 Data seeding
 Generators overview - Model, Controller
Friday, May 10, 2013
Summary
 Gemfiles and dependencies
 Database Migrations
 Data seeding
 Generators overview - Model, Controller
 rails console and rails dbconsole
Friday, May 10, 2013
Summary
 Gemfiles and dependencies
 Database Migrations
 Data seeding
 Generators overview - Model, Controller
 rails console and rails dbconsole
 Other rake tasks
Friday, May 10, 2013
Summary
 Gemfiles and dependencies
 Database Migrations
 Data seeding
 Generators overview - Model, Controller
 rails console and rails dbconsole
 Other rake tasks
 Asset pipeline
Friday, May 10, 2013

Weitere ähnliche Inhalte

Ähnlich wie Slides

Unleashing the Rails Asset Pipeline
Unleashing the Rails Asset PipelineUnleashing the Rails Asset Pipeline
Unleashing the Rails Asset PipelineKenneth Kalmer
 
Frozen Rails Slides
Frozen Rails SlidesFrozen Rails Slides
Frozen Rails Slidescarllerche
 
Diving Into the New AWS SDK for Ruby (TLS305) | AWS re:Invent 2013
Diving Into the New AWS SDK for Ruby (TLS305) | AWS re:Invent 2013Diving Into the New AWS SDK for Ruby (TLS305) | AWS re:Invent 2013
Diving Into the New AWS SDK for Ruby (TLS305) | AWS re:Invent 2013Amazon Web Services
 
Javascript Frameworks Comparison
Javascript Frameworks ComparisonJavascript Frameworks Comparison
Javascript Frameworks ComparisonDeepu S Nath
 
Javascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
Javascript Frameworks Comparison - Angular, Knockout, Ember and BackboneJavascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
Javascript Frameworks Comparison - Angular, Knockout, Ember and BackboneDeepu S Nath
 
Beyond The Web: Drupal Meets The Desktop (And Mobile)
Beyond The Web: Drupal Meets The Desktop (And Mobile)Beyond The Web: Drupal Meets The Desktop (And Mobile)
Beyond The Web: Drupal Meets The Desktop (And Mobile)Justin Miller
 
Jasper Reports
Jasper ReportsJasper Reports
Jasper ReportsEnkitec
 
NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013
NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013
NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013Andrew Morgan
 
Building a platform with Django, Docker and Salt | Djangocon lightning talk
Building a platform with Django, Docker and Salt | Djangocon lightning talkBuilding a platform with Django, Docker and Salt | Djangocon lightning talk
Building a platform with Django, Docker and Salt | Djangocon lightning talkdotCloud
 
Building a Platform with Django, Docker and Salt
Building a Platform with Django, Docker and SaltBuilding a Platform with Django, Docker and Salt
Building a Platform with Django, Docker and SaltDocker, Inc.
 
Enterprise Maven Repository BOF
Enterprise Maven Repository BOFEnterprise Maven Repository BOF
Enterprise Maven Repository BOFMax Andersen
 
Oredev 2013: Building Web Apps with Ember.js
Oredev 2013: Building Web Apps with Ember.jsOredev 2013: Building Web Apps with Ember.js
Oredev 2013: Building Web Apps with Ember.jsJesse Cravens
 
Building a platform with Django, Docker, and Salt
Building a platform with Django, Docker, and SaltBuilding a platform with Django, Docker, and Salt
Building a platform with Django, Docker, and Saltbaremetal
 
JSDay 2013 - Practical Responsive Web Design
JSDay 2013 - Practical Responsive Web DesignJSDay 2013 - Practical Responsive Web Design
JSDay 2013 - Practical Responsive Web DesignJonathan Klein
 
Free The Enterprise With Ruby & Master Your Own Domain
Free The Enterprise With Ruby & Master Your Own DomainFree The Enterprise With Ruby & Master Your Own Domain
Free The Enterprise With Ruby & Master Your Own DomainKen Collins
 
Introduction to NoSQL with MongoDB
Introduction to NoSQL with MongoDBIntroduction to NoSQL with MongoDB
Introduction to NoSQL with MongoDBHector Correa
 
MySQL For Oracle DBA's and Developers
MySQL For Oracle DBA's and DevelopersMySQL For Oracle DBA's and Developers
MySQL For Oracle DBA's and DevelopersRonald Bradford
 

Ähnlich wie Slides (20)

Unleashing the Rails Asset Pipeline
Unleashing the Rails Asset PipelineUnleashing the Rails Asset Pipeline
Unleashing the Rails Asset Pipeline
 
Frozen Rails Slides
Frozen Rails SlidesFrozen Rails Slides
Frozen Rails Slides
 
Lightweight javaEE with Guice
Lightweight javaEE with GuiceLightweight javaEE with Guice
Lightweight javaEE with Guice
 
Diving Into the New AWS SDK for Ruby (TLS305) | AWS re:Invent 2013
Diving Into the New AWS SDK for Ruby (TLS305) | AWS re:Invent 2013Diving Into the New AWS SDK for Ruby (TLS305) | AWS re:Invent 2013
Diving Into the New AWS SDK for Ruby (TLS305) | AWS re:Invent 2013
 
Javascript Frameworks Comparison
Javascript Frameworks ComparisonJavascript Frameworks Comparison
Javascript Frameworks Comparison
 
Javascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
Javascript Frameworks Comparison - Angular, Knockout, Ember and BackboneJavascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
Javascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
 
Beyond The Web: Drupal Meets The Desktop (And Mobile)
Beyond The Web: Drupal Meets The Desktop (And Mobile)Beyond The Web: Drupal Meets The Desktop (And Mobile)
Beyond The Web: Drupal Meets The Desktop (And Mobile)
 
Jasper Reports
Jasper ReportsJasper Reports
Jasper Reports
 
NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013
NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013
NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013
 
Building a platform with Django, Docker and Salt | Djangocon lightning talk
Building a platform with Django, Docker and Salt | Djangocon lightning talkBuilding a platform with Django, Docker and Salt | Djangocon lightning talk
Building a platform with Django, Docker and Salt | Djangocon lightning talk
 
Building a Platform with Django, Docker and Salt
Building a Platform with Django, Docker and SaltBuilding a Platform with Django, Docker and Salt
Building a Platform with Django, Docker and Salt
 
Enterprise Maven Repository BOF
Enterprise Maven Repository BOFEnterprise Maven Repository BOF
Enterprise Maven Repository BOF
 
Oredev 2013: Building Web Apps with Ember.js
Oredev 2013: Building Web Apps with Ember.jsOredev 2013: Building Web Apps with Ember.js
Oredev 2013: Building Web Apps with Ember.js
 
Building a platform with Django, Docker, and Salt
Building a platform with Django, Docker, and SaltBuilding a platform with Django, Docker, and Salt
Building a platform with Django, Docker, and Salt
 
JSDay 2013 - Practical Responsive Web Design
JSDay 2013 - Practical Responsive Web DesignJSDay 2013 - Practical Responsive Web Design
JSDay 2013 - Practical Responsive Web Design
 
Rails 101
Rails 101Rails 101
Rails 101
 
Free The Enterprise With Ruby & Master Your Own Domain
Free The Enterprise With Ruby & Master Your Own DomainFree The Enterprise With Ruby & Master Your Own Domain
Free The Enterprise With Ruby & Master Your Own Domain
 
Introduction to NoSQL with MongoDB
Introduction to NoSQL with MongoDBIntroduction to NoSQL with MongoDB
Introduction to NoSQL with MongoDB
 
Create a new project in ROR
Create a new project in RORCreate a new project in ROR
Create a new project in ROR
 
MySQL For Oracle DBA's and Developers
MySQL For Oracle DBA's and DevelopersMySQL For Oracle DBA's and Developers
MySQL For Oracle DBA's and Developers
 

Kürzlich hochgeladen

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 

Kürzlich hochgeladen (20)

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Slides

  • 3. Gemfile  Keeps track of all dependencies in your project Friday, May 10, 2013
  • 4. Gemfile  Keeps track of all dependencies in your project  Specify alternate gem repositories (like a corporate gem repo) Friday, May 10, 2013
  • 5. Gemfile  Keeps track of all dependencies in your project  Specify alternate gem repositories (like a corporate gem repo)  Group dependencies by environment Friday, May 10, 2013
  • 6.  Add a gem dependency  gem‘gem_name’  gem‘gem_name’,‘version’  gem‘gem_name’,‘git_repo’ Gemfile  Keeps track of all dependencies in your project  Specify alternate gem repositories (like a corporate gem repo)  Group dependencies by environment Friday, May 10, 2013
  • 7. Database Migrations in Depth  Keep your database structure in sync in all environments  Development (Bleeding Edge)  Testing (Close to development or slightly behind)  Production (Behind testing and development) Friday, May 10, 2013
  • 8. Database Migrations in Depth  Keep your database structure in sync in all environments  Development (Bleeding Edge)  Testing (Close to development or slightly behind)  Production (Behind testing and development)  schema_migrations table used to track versions Friday, May 10, 2013
  • 9. Database Migrations in Depth  Keep your database structure in sync in all environments  Development (Bleeding Edge)  Testing (Close to development or slightly behind)  Production (Behind testing and development) Development Version 9 App release 1.3  schema_migrations table used to track versions Friday, May 10, 2013
  • 10. Database Migrations in Depth  Keep your database structure in sync in all environments  Development (Bleeding Edge)  Testing (Close to development or slightly behind)  Production (Behind testing and development) Testing Version 6 App release 1.2 Development Version 9 App release 1.3  schema_migrations table used to track versions Friday, May 10, 2013
  • 11. Database Migrations in Depth  Keep your database structure in sync in all environments  Development (Bleeding Edge)  Testing (Close to development or slightly behind)  Production (Behind testing and development) Production Version 3 App release 1.1 Testing Version 6 App release 1.2 Development Version 9 App release 1.3  schema_migrations table used to track versions Friday, May 10, 2013
  • 12. Data Seeding  Load preferences, lookups or other needed data Friday, May 10, 2013
  • 13. Data Seeding  Load preferences, lookups or other needed data  Seed data goes in db/seeds.rb Friday, May 10, 2013
  • 14. Data Seeding  Load preferences, lookups or other needed data  Seed data goes in db/seeds.rb  rake db:seed Friday, May 10, 2013
  • 16. Generators Overview  Generators create boilerplate code for pieces of your application Friday, May 10, 2013
  • 17.  Rails provides a set of default generators  “rails generate”or“rails generate --help” Generators Overview  Generators create boilerplate code for pieces of your application Friday, May 10, 2013
  • 18.  Rails provides a set of default generators  “rails generate”or“rails generate --help” Generators Overview  Generators create boilerplate code for pieces of your application  Gems can provide generators and you can write your own custom generators Friday, May 10, 2013
  • 20. Generating Models  Model generator creates an ActiveRecord model and a migration Friday, May 10, 2013
  • 21. Generating Models  Model generator creates an ActiveRecord model and a migration  Pass in attributes and their data types to leverage more code generation Friday, May 10, 2013
  • 22. Generating Models  Model generator creates an ActiveRecord model and a migration  Pass in attributes and their data types to leverage more code generation  rails generate model model_name attr1:string attr2:integer etc. Friday, May 10, 2013
  • 24. Generating Controllers  Controller generator will create a controller and folder stubs for its views Friday, May 10, 2013
  • 25. Generating Controllers  Controller generator will create a controller and folder stubs for its views  Pass in actions to have the generator create view stub files for the actions Friday, May 10, 2013
  • 26. Generating Controllers  Controller generator will create a controller and folder stubs for its views  Pass in actions to have the generator create view stub files for the actions  rails generate controller contr_name action1 action 2 Friday, May 10, 2013
  • 28. Rails Console Overview  Interactive interpreter with your rails project loaded Friday, May 10, 2013
  • 29. Rails Console Overview  Interactive interpreter with your rails project loaded  Good way to become familiar with code or features or to debug Friday, May 10, 2013
  • 30. Rails Console Overview  Interactive interpreter with your rails project loaded  Start the rails console with the following command  rails console  rails console production  Good way to become familiar with code or features or to debug Friday, May 10, 2013
  • 31. Rails DB Console Friday, May 10, 2013
  • 32. Rails DB Console  A wrapper around your database console Friday, May 10, 2013
  • 33. Rails DB Console  A wrapper around your database console  An easy way to deal with MySQL, PostgreSQL and SQLite Friday, May 10, 2013
  • 34. Rails DB Console  A wrapper around your database console  Start the rails db console with the following command  rails dbconsole  rails dbconsole production -p  An easy way to deal with MySQL, PostgreSQL and SQLite Friday, May 10, 2013
  • 35. Other Rake Tasks Friday, May 10, 2013
  • 36. Other Rake Tasks  rake about Friday, May 10, 2013
  • 37. Other Rake Tasks  rake about  rake stats Friday, May 10, 2013
  • 38. Other Rake Tasks  rake about  rake stats  rake test Friday, May 10, 2013
  • 40. Asset Pipeline Overview  Framework for images, JS and CSS resources Friday, May 10, 2013
  • 41. Asset Pipeline Overview  Framework for images, JS and CSS resources  Rails asset pipeline will auto minify and compress JS and CSS Friday, May 10, 2013
  • 42. Asset Pipeline Overview  Framework for images, JS and CSS resources  Rails asset pipeline will auto minify and compress JS and CSS  Asset pipeline supports enhanced languages such as CoffeeScript and SASS Friday, May 10, 2013
  • 44. Summary  Gemfiles and dependencies Friday, May 10, 2013
  • 45. Summary  Gemfiles and dependencies  Database Migrations Friday, May 10, 2013
  • 46. Summary  Gemfiles and dependencies  Database Migrations  Data seeding Friday, May 10, 2013
  • 47. Summary  Gemfiles and dependencies  Database Migrations  Data seeding  Generators overview - Model, Controller Friday, May 10, 2013
  • 48. Summary  Gemfiles and dependencies  Database Migrations  Data seeding  Generators overview - Model, Controller  rails console and rails dbconsole Friday, May 10, 2013
  • 49. Summary  Gemfiles and dependencies  Database Migrations  Data seeding  Generators overview - Model, Controller  rails console and rails dbconsole  Other rake tasks Friday, May 10, 2013
  • 50. Summary  Gemfiles and dependencies  Database Migrations  Data seeding  Generators overview - Model, Controller  rails console and rails dbconsole  Other rake tasks  Asset pipeline Friday, May 10, 2013