Movatterモバイル変換


[0]ホーム

URL:


Alain Bindele, profile picture
Uploaded byAlain Bindele
PDF, PPTX158 views

Create rails project

This document provides instructions for installing Ruby on Rails on OSX. It explains that Ruby on Rails is a model-view-controller web application framework written in Ruby. It then details installing Homebrew and dependencies like rbenv and Ruby. Instructions are provided for generating a new Rails project, creating the database, and running the Rails server. The final section thanks the reader.

Embed presentation

Download as PDF, PPTX
RUBY ON RAILSUP AND RUNNING WITHAlain Bindele - mail:alain.bindele@gmail.com
UP AND RUNNING WITH RUBY ON RAILSINTRO - WHAT’S RUBY ON RAILSRuby on Rails, or simply Rails, is a server side web applicationframework written in RUBY under MIT Licence. Rails is a Model-View-Controller (MVC) framework, providing default structuresfor a database, a web service and web pages [Wikipedia]+
UP AND RUNNING WITH RUBY ON RAILSINSTALLATION (OSX)The first thing to do is to installHomebrew> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Homebrew installs the stuff you need that Apple didn’t.
UP AND RUNNING WITH RUBY ON RAILSINSTALLATION (OSX)Maybe the installation gives you some error, just like these:Then Just type:>rm -fr /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/share/doc/homebrew /usr/local/etc/bash_completion.d/brew
UP AND RUNNING WITH RUBY ON RAILSINSTALLATION (OSX)Maybe the installation gives you some error, just like these:And re-runruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”brew link autoconfbrew install rbenv ruby-build
UP AND RUNNING WITH RUBY ON RAILSINSTALLATION (OSX)Add rbenv to bash so that it loads every time you open a terminalecho 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profilesource ~/.bash_profilerbenv install 2.3.1rbenv global 2.3.1ruby -vIf mysql is needed thenbrew install sqlite3
UP AND RUNNING WITH RUBY ON RAILSINSTALLATION (OSX)Next important step ...installing Rails but maybe you have an oldversion of gem and the rails 4 require a new gem so you have togem update --system 2.0.3brew uninstall xzsince install nokogiri without giving this commandcould lead an error for a dependency issue so thengem install nokogiri -v 1.6.8
UP AND RUNNING WITH RUBY ON RAILSINSTALLATION (OSX)gem install rails -v 4.2.6rbenv rehashThen finally install Rails
UP AND RUNNING WITH RUBY ON RAILSINSTALLATION (OSX)brew install mysqlgem install mysql2 -v '0.4.5'You may need a mysql client (with the relative jam)
UP AND RUNNING WITH RUBY ON RAILSCREATE A NEW RAILS PROJECTTo create a brand new project go in your favourite workspace directory and type:rails new new_rails_apprails new new_rails_app -d mysqlbut if you need mysql support type:
UP AND RUNNING WITH RUBY ON RAILSCREATE A NEW RAILS PROJECTIf you setup MySQL or Postgres with a username/password, modify theconfig/database.yml file to contain the username/password that you specifiedCreate the databaserake db:createrails server
UP AND RUNNING WITH RUBY ON RAILSCREATE A NEW RAILS PROJECTIf you setup MySQL or Postgres with a username/password, modify theconfig/database.yml file to contain the username/password that you specifiedCreate the databaserake db:createrails server
UP AND RUNNING WITH RUBY ON RAILSCREATE A NEW RAILS PROJECTPoint your browser tohttp://127.0.0.1:3000
ALAIN BINDELEMAIL: ALAIN.BINDELE@GMAIL.COMSKYPE: ALAIN.BINDELETHANK YOU ^_^

Recommended

PPTX
Guidlines sitecore9 installation
PPTX
Deploy a compute instance with a remote startup script
PPTX
Google cloud essential skills challenge lab
PPTX
L5 swagger
PDF
Get Going With RVM and Rails 3
PPT
Diva23
 
PPTX
Word press workflows and gulp
TXT
Apache ds building_from_source
PDF
Install oracle siebel on windows 2008 r2
ODP
Appache.ppt
PPTX
virtual hosting and configuration
PDF
Ruby On Rails Starter Kit
PDF
Ansible automation tool with modules
ODP
Sql installation
ODP
Prabu apache installations
PPT
Apache
 
PPT
How to Contribute Code to MySQL?
PDF
TYPO3 Performance (T3DD18)
PPTX
How to install ReactJS software
PPTX
Groovy with Mule
ODP
Mysql S&M
PPTX
Best Practices for creating WP REST API by Galkin Nikita
PPTX
Activemq installation and master slave setup using shared broker data
PPT
My sql essentials
PDF
Mystic waters
PDF
Ruby performance - The low hanging fruit
PPTX
Ruby et son écosystème (french)
PDF
Introduction à Ruby
PDF
Café Numérique Arlon S03#02: Je code mon blog (EU code week Arlon)

More Related Content

PPTX
Guidlines sitecore9 installation
PPTX
Deploy a compute instance with a remote startup script
PPTX
Google cloud essential skills challenge lab
PPTX
L5 swagger
PDF
Get Going With RVM and Rails 3
PPT
Diva23
 
PPTX
Word press workflows and gulp
TXT
Apache ds building_from_source
Guidlines sitecore9 installation
Deploy a compute instance with a remote startup script
Google cloud essential skills challenge lab
L5 swagger
Get Going With RVM and Rails 3
Diva23
 
Word press workflows and gulp
Apache ds building_from_source

What's hot

PDF
Install oracle siebel on windows 2008 r2
ODP
Appache.ppt
PPTX
virtual hosting and configuration
PDF
Ruby On Rails Starter Kit
PDF
Ansible automation tool with modules
ODP
Sql installation
ODP
Prabu apache installations
PPT
Apache
 
PPT
How to Contribute Code to MySQL?
PDF
TYPO3 Performance (T3DD18)
PPTX
How to install ReactJS software
PPTX
Groovy with Mule
ODP
Mysql S&M
PPTX
Best Practices for creating WP REST API by Galkin Nikita
PPTX
Activemq installation and master slave setup using shared broker data
PPT
My sql essentials
Install oracle siebel on windows 2008 r2
Appache.ppt
virtual hosting and configuration
Ruby On Rails Starter Kit
Ansible automation tool with modules
Sql installation
Prabu apache installations
Apache
 
How to Contribute Code to MySQL?
TYPO3 Performance (T3DD18)
How to install ReactJS software
Groovy with Mule
Mysql S&M
Best Practices for creating WP REST API by Galkin Nikita
Activemq installation and master slave setup using shared broker data
My sql essentials

Viewers also liked

PDF
Mystic waters
PDF
Ruby performance - The low hanging fruit
PPTX
Ruby et son écosystème (french)
PDF
Introduction à Ruby
PDF
Café Numérique Arlon S03#02: Je code mon blog (EU code week Arlon)
PPT
Introduction to Ruby on Rails
PPTX
Beginners' guide to Ruby on Rails
PDF
Data-driven urbanism (Amsterdam, Jan 2017)
PDF
Introduction to Ruby on Rails
PDF
Ruby On Rails Introduction
PDF
[devops REX 2016] Les impacts techniques et organisationnels liés à devops
PDF
Docker : quels enjeux pour le stockage et réseau ? Paris Open Source Summit ...
PDF
Building Mobile Apps with Cordova , AngularJS and Ionic
PPTX
05 - [ASP.NET Core] Devops : VSTS, Git, Azure, Docker, Linux
PDF
How Shopify Scales Rails
 
PDF
Realtime Web avec Akka, Kafka, Spark et Mesos - Devoxx Paris 2014
 
PPTX
Offre onepoint - Data science et big data
PPTX
#1 cloud-infra-talk- l ops-du-devops
PPTX
Roberto Converti . py publico privado
byPTF
 
DOC
Ley de estupefacientes y psicotrópicos
Mystic waters
Ruby performance - The low hanging fruit
Ruby et son écosystème (french)
Introduction à Ruby
Café Numérique Arlon S03#02: Je code mon blog (EU code week Arlon)
Introduction to Ruby on Rails
Beginners' guide to Ruby on Rails
Data-driven urbanism (Amsterdam, Jan 2017)
Introduction to Ruby on Rails
Ruby On Rails Introduction
[devops REX 2016] Les impacts techniques et organisationnels liés à devops
Docker : quels enjeux pour le stockage et réseau ? Paris Open Source Summit ...
Building Mobile Apps with Cordova , AngularJS and Ionic
05 - [ASP.NET Core] Devops : VSTS, Git, Azure, Docker, Linux
How Shopify Scales Rails
 
Realtime Web avec Akka, Kafka, Spark et Mesos - Devoxx Paris 2014
 
Offre onepoint - Data science et big data
#1 cloud-infra-talk- l ops-du-devops
Roberto Converti . py publico privado
byPTF
 
Ley de estupefacientes y psicotrópicos

Similar to Create rails project

PDF
Introduction to Rails - presented by Arman Ortega
KEY
An introduction to Rails 3
PPTX
How To Install Ruby on Rails on Ubuntu
PPTX
Exploring Ruby on Rails and PostgreSQL
PPTX
Ruby on rails
PDF
rubyonrails
PDF
rubyonrails
PDF
Ruby course-1-preview
PDF
Install Ruby on Rails Like a Pro: Effortless Guide
PDF
Basic Rails Training
PPTX
Rubyonrails 120409061835-phpapp02
PDF
Ruby On Rails Basics
PPT
Ruby On Rails
PPTX
Dev streams2
PDF
Introduction to rails
PPTX
Ruby on Rails - An overview
PDF
Lecture #5 Introduction to rails
PDF
Introduction to Rails by Evgeniy Hinyuk
PDF
Ruby On Rails
 
KEY
Ruby on Rails survival guide of an aged Java developer
Introduction to Rails - presented by Arman Ortega
An introduction to Rails 3
How To Install Ruby on Rails on Ubuntu
Exploring Ruby on Rails and PostgreSQL
Ruby on rails
rubyonrails
rubyonrails
Ruby course-1-preview
Install Ruby on Rails Like a Pro: Effortless Guide
Basic Rails Training
Rubyonrails 120409061835-phpapp02
Ruby On Rails Basics
Ruby On Rails
Dev streams2
Introduction to rails
Ruby on Rails - An overview
Lecture #5 Introduction to rails
Introduction to Rails by Evgeniy Hinyuk
Ruby On Rails
 
Ruby on Rails survival guide of an aged Java developer

Recently uploaded

PPTX
GDS Integration Solution | GDS Integration Service
PDF
Intelligent CRM for Insurance Brokers: Managing Clients with Precision
PDF
Navigating SEC Regulations for Crypto Exchanges Preparing for a Compliant Fut...
DOCX
How to Change Classic SharePoint to Modern SharePoint (An Updated Guide)
PDF
IT Estate Modernization: Transform Your Infrastructure for the Future .pdf
PDF
Cybersecurity Alert- What Organisations Must Watch Out For This Christmas Fes...
PPTX
AI Clinic Management Software for Pulmonology Clinics Bringing Clarity, Contr...
PDF
Imed Eddine Bouchoucha | computer engineer | software Architect
PPTX
Managed Splunk Partner vs In-House: Cost, Risk & Value Comparison
PDF
Database Management Systems(DBMS):UNIT-I Introduction to Database(DBMS) BCA S...
PDF
Transforming Compliance Through Policy & Procedure Management
PPTX
AI Clinic Management Software for Otolaryngology Clinics Bringing Precision, ...
PPTX
NSF Converter Software to Convert NSF to PST, EML, MSG
PDF
Database Management Systems(DBMS):UNIT-II Relational Data Model BCA SEP SEM ...
PPTX
Lecture 3 - Scheduling - Operating System
PDF
Operating System (OS) :UNIT-I Introduction to Operating System BCA SEP SEM-II...
PDF
Advanced Prompt Engineering: The Art and Science
PPTX
Reimagining Service with AI Voice Agents | Webinar
PDF
Virtual Study Circles Innovative Ways to Collaborate Online.pdf
PPTX
#15 All About Anypoint MQ - Calicut MuleSoft Meetup Group
GDS Integration Solution | GDS Integration Service
Intelligent CRM for Insurance Brokers: Managing Clients with Precision
Navigating SEC Regulations for Crypto Exchanges Preparing for a Compliant Fut...
How to Change Classic SharePoint to Modern SharePoint (An Updated Guide)
IT Estate Modernization: Transform Your Infrastructure for the Future .pdf
Cybersecurity Alert- What Organisations Must Watch Out For This Christmas Fes...
AI Clinic Management Software for Pulmonology Clinics Bringing Clarity, Contr...
Imed Eddine Bouchoucha | computer engineer | software Architect
Managed Splunk Partner vs In-House: Cost, Risk & Value Comparison
Database Management Systems(DBMS):UNIT-I Introduction to Database(DBMS) BCA S...
Transforming Compliance Through Policy & Procedure Management
AI Clinic Management Software for Otolaryngology Clinics Bringing Precision, ...
NSF Converter Software to Convert NSF to PST, EML, MSG
Database Management Systems(DBMS):UNIT-II Relational Data Model BCA SEP SEM ...
Lecture 3 - Scheduling - Operating System
Operating System (OS) :UNIT-I Introduction to Operating System BCA SEP SEM-II...
Advanced Prompt Engineering: The Art and Science
Reimagining Service with AI Voice Agents | Webinar
Virtual Study Circles Innovative Ways to Collaborate Online.pdf
#15 All About Anypoint MQ - Calicut MuleSoft Meetup Group

Create rails project

  • 1.
    RUBY ON RAILSUPAND RUNNING WITHAlain Bindele - mail:alain.bindele@gmail.com
  • 2.
    UP AND RUNNINGWITH RUBY ON RAILSINTRO - WHAT’S RUBY ON RAILSRuby on Rails, or simply Rails, is a server side web applicationframework written in RUBY under MIT Licence. Rails is a Model-View-Controller (MVC) framework, providing default structuresfor a database, a web service and web pages [Wikipedia]+
  • 3.
    UP AND RUNNINGWITH RUBY ON RAILSINSTALLATION (OSX)The first thing to do is to installHomebrew> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Homebrew installs the stuff you need that Apple didn’t.
  • 4.
    UP AND RUNNINGWITH RUBY ON RAILSINSTALLATION (OSX)Maybe the installation gives you some error, just like these:Then Just type:>rm -fr /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/share/doc/homebrew /usr/local/etc/bash_completion.d/brew
  • 5.
    UP AND RUNNINGWITH RUBY ON RAILSINSTALLATION (OSX)Maybe the installation gives you some error, just like these:And re-runruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”brew link autoconfbrew install rbenv ruby-build
  • 6.
    UP AND RUNNINGWITH RUBY ON RAILSINSTALLATION (OSX)Add rbenv to bash so that it loads every time you open a terminalecho 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profilesource ~/.bash_profilerbenv install 2.3.1rbenv global 2.3.1ruby -vIf mysql is needed thenbrew install sqlite3
  • 7.
    UP AND RUNNINGWITH RUBY ON RAILSINSTALLATION (OSX)Next important step ...installing Rails but maybe you have an oldversion of gem and the rails 4 require a new gem so you have togem update --system 2.0.3brew uninstall xzsince install nokogiri without giving this commandcould lead an error for a dependency issue so thengem install nokogiri -v 1.6.8
  • 8.
    UP AND RUNNINGWITH RUBY ON RAILSINSTALLATION (OSX)gem install rails -v 4.2.6rbenv rehashThen finally install Rails
  • 9.
    UP AND RUNNINGWITH RUBY ON RAILSINSTALLATION (OSX)brew install mysqlgem install mysql2 -v '0.4.5'You may need a mysql client (with the relative jam)
  • 10.
    UP AND RUNNINGWITH RUBY ON RAILSCREATE A NEW RAILS PROJECTTo create a brand new project go in your favourite workspace directory and type:rails new new_rails_apprails new new_rails_app -d mysqlbut if you need mysql support type:
  • 11.
    UP AND RUNNINGWITH RUBY ON RAILSCREATE A NEW RAILS PROJECTIf you setup MySQL or Postgres with a username/password, modify theconfig/database.yml file to contain the username/password that you specifiedCreate the databaserake db:createrails server
  • 12.
    UP AND RUNNINGWITH RUBY ON RAILSCREATE A NEW RAILS PROJECTIf you setup MySQL or Postgres with a username/password, modify theconfig/database.yml file to contain the username/password that you specifiedCreate the databaserake db:createrails server
  • 13.
    UP AND RUNNINGWITH RUBY ON RAILSCREATE A NEW RAILS PROJECTPoint your browser tohttp://127.0.0.1:3000
  • 14.

[8]ページ先頭

©2009-2025 Movatter.jp