LoginSignup
0
0

More than 3 years have passed since last update.

railsアプリの作成手順

Last updated at Posted at 2020-05-15

①rails new

rails newコマンドは、Railsアプリケーションの土台を作るためのコマンド

$ rails _5.2.4_ new sample -d postgresql

②rails server

rails severはwebサーバーを起動させるコマンド

$ rails db:create

③rails new scaffold

簡単なCRUD機能をもつアプリを作成するコマンド

$ rails generate scaffold モデル名 カラム名:データ型

作成時にGemfileからjbuilder gemを削除するとJSON関連のコードを生成しない。

 gem 'jbuilder

参考記事
https://qiita.com/jnchito/items/ec070f7551c983cc5b60

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0