LoginSignup
2
1

More than 5 years have passed since last update.

Rails engine の1つのアプリ内のモデルをrails consoleで操作する方法

Posted at

自分用メモ。

まず、モジュール名をチェックする。/engine/hoge_app/lib/hoge_app.rb の moduleを確認。モジュール名がHogeAppであったとすると、rails consoleで

> ::HogeApp::ModelName.some_method

とすればモデルを操作できる。

2
1
2

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
2
1