LoginSignup
12
7

More than 5 years have passed since last update.

sinatraを`rails console`みたいにconsole起動

Last updated at Posted at 2013-12-05

2018-12-01 当記事の内容では起動できませんでした。
もしrails consoleのように起動する方法をご存知でしたらコメント頂けると嬉しいです。

クラシックスタイルでapp.rbが起動ファイルだとして。

irb
irb -r app.rb

pry
pry -r app.rb

bundler使ってる場合のpry
-bundle exec pry -r app.rb-
追記:うそ。だめかも。

pry起動してからの場合

bundle exec pry
> require './app'

参考

まあ、こんだけ検索でヒットするからきっと正しいのだろう…

12
7
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
12
7