LoginSignup
0
0

More than 1 year has passed since last update.

【rails】rails g controllerコマンドでapi/以下にファイルを生成するコマンド

Last updated at Posted at 2022-12-02

はじめに

自分はAPIモードを使わずにapi/以下にコントローラーを作っていて、毎度お目当ての情報にたどり着くのに時間がかかっていたのでメモ

参考

環境

OS: macOS Monterey
Ruby: 3.1.2
Rails: 7.0.4

コマンド

rails g controller api/v1/posts
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