Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| rubyonrails [Le 17/07/2017, 13:44] – [Configuration] modification ajout details J5012 | rubyonrails [Le 31/08/2022, 23:32] (Version actuelle) – Passage de http à https sur les liens externes (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892) moths-art | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| ====== Rails (ou Ruby on Rails dit aussi RoR) ====== | ====== Rails (ou Ruby on Rails dit aussi RoR) ====== | ||
| - | Rails est un cadriciel libre orienté dans le développement d' | + | Rails est un cadriciel libre orienté dans le développement d' |
| - | + | ||
| - | → fournir une capture d' | + | |
| ===== Pré-requis ===== | ===== Pré-requis ===== | ||
| Ligne 16: | Ligne 13: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | Pour installer ce logiciel, il suffit d' | + | Pour installer ce logiciel, il suffit d' |
| ===== Configuration ===== | ===== Configuration ===== | ||
| Ligne 26: | Ligne 23: | ||
| que vous pouvez aussi obtenir avec juste la commande __rails__ ou : | que vous pouvez aussi obtenir avec juste la commande __rails__ ou : | ||
| - | < | + | < |
| - | $ rails new -h | + | rails new -h |
| Usage: | Usage: | ||
| rails new APP_PATH [options] | rails new APP_PATH [options] | ||
| Ligne 85: | Ligne 82: | ||
| * Générez le squelette de l' | * Générez le squelette de l' | ||
| - | < | + | < |
| + | rails new $HOME/ | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | create | ||
| + | | ||
| + | Resolving dependencies... | ||
| + | Using rake 10.5.0 | ||
| + | Using i18n 0.7.0 | ||
| + | Using json 1.8.3 | ||
| + | Using minitest 5.8.4 | ||
| + | Using thread_safe 0.3.5 | ||
| + | Using builder 3.2.2 | ||
| + | Using erubis 2.7.0 | ||
| + | Using nokogiri 1.6.7.2 | ||
| + | Using rack 1.6.4 | ||
| + | Using mime-types 2.6.1 | ||
| + | Using arel 6.0.3 | ||
| + | Using debug_inspector 0.0.2 | ||
| + | Using bundler 1.11.2 | ||
| + | Using columnize 0.9.0 | ||
| + | Using coffee-script-source 1.9.1.1 | ||
| + | Using execjs 2.6.0 | ||
| + | Using thor 0.19.1 | ||
| + | Using multi_json 1.11.2 | ||
| + | Using rdoc 4.2.1 | ||
| + | Using sass 3.4.21 | ||
| + | Using tilt 2.0.1 | ||
| + | Using spring 1.3.6 | ||
| + | Using sqlite3 1.3.11 | ||
| + | Using tzinfo 1.2.2 | ||
| + | Using loofah 2.0.3 | ||
| + | Using rack-test 0.6.3 | ||
| + | Using sprockets 3.3.0 | ||
| + | Using mail 2.6.3 | ||
| + | Using binding_of_caller 0.7.2 | ||
| + | Using byebug 5.0.0 | ||
| + | Using coffee-script 2.4.1 | ||
| + | Using uglifier 2.7.2 | ||
| + | Using sdoc 0.4.1 | ||
| + | Using activesupport 4.2.6 | ||
| + | Using rails-html-sanitizer 1.0.3 | ||
| + | Using rails-deprecated_sanitizer 1.0.3 | ||
| + | Using globalid 0.3.6 | ||
| + | Using activemodel 4.2.6 | ||
| + | Using jbuilder 2.3.1 | ||
| + | Using rails-dom-testing 1.0.6 | ||
| + | Using activejob 4.2.6 | ||
| + | Using activerecord 4.2.6 | ||
| + | Using actionview 4.2.6 | ||
| + | Using actionpack 4.2.6 | ||
| + | Using actionmailer 4.2.6 | ||
| + | Using railties 4.2.6 | ||
| + | Using sprockets-rails 2.3.2 | ||
| + | Using coffee-rails 4.1.0 | ||
| + | Using jquery-rails 4.0.5 | ||
| + | Using rails 4.2.6 | ||
| + | Using sass-rails 5.0.4 | ||
| + | Using web-console 2.2.1 | ||
| + | Using turbolinks 2.5.3 | ||
| + | Bundle complete! 12 Gemfile dependencies, | ||
| + | Use `bundle show [gemname]` to see where a bundled gem is installed. | ||
| + | | ||
| + | * bin/rake: spring inserted | ||
| + | * bin/rails: spring inserted | ||
| + | </ | ||
| * Lancez ensuite le serveur Rails pour exécuter l' | * Lancez ensuite le serveur Rails pour exécuter l' | ||
| - | < | + | < |
| - | $ bin/rails server | + | bin/rails server |
| + | => Booting WEBrick | ||
| + | => Rails 4.2.6 application starting in development on http:// | ||
| + | => Run `rails server -h` for more startup options | ||
| + | => Ctrl-C to shutdown server | ||
| + | [2017-07-17 01:28:37] INFO WEBrick 1.3.1 | ||
| + | [2017-07-17 01:28:37] INFO ruby 2.3.1 (2016-04-26) [x86_64-linux-gnu] | ||
| + | [2017-07-17 01:28:37] INFO WEBrick:: | ||
| + | |||
| + | |||
| + | Started GET "/" | ||
| + | Processing by Rails:: | ||
| + | Rendered / | ||
| + | Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: | ||
| </ | </ | ||
| - | < | + | < |
| * la base préconfigurée de l' | * la base préconfigurée de l' | ||
| - | < | + | < |
| - | $ rake db: | + | rake db: |
| * l' | * l' | ||
| - | < | + | < |
| </ | </ | ||
| - | * Lancez le navigateur web à l' | + | * Lancez le navigateur web à l' |
| - | < | + | < |
| - | → fournir une capture d' | + | {{:: |
| ==== Utilisations avancées ==== | ==== Utilisations avancées ==== | ||
| Ligne 106: | Ligne 255: | ||
| * modules [[https:// | * modules [[https:// | ||
| - | ou d' | + | ou d' |
| ===== Désinstallation ===== | ===== Désinstallation ===== | ||
| Ligne 114: | Ligne 263: | ||
| * **(en)** [[http:// | * **(en)** [[http:// | ||
| - | * **(fr)** [[https:// | + | * **(fr)** [[wpfr>Ruby_on_Rails|Ruby on Rails sur Wikipédia]] |
| * **(fr)** [[http:// | * **(fr)** [[http:// | ||
| Ligne 120: | Ligne 269: | ||
| // | // | ||
| - | //Basé sur [[http:// | + | //Basé sur [[https:// |
