REPL support? #2

yuvilio opened this Issue Jul 16, 2012 · 4 comments


None yet
3 participants

yuvilio commented Jul 16, 2012

Rails REPLs (for example, rails dbconsole, rails console in the command line , binding.pry in the code) don't seem to work when wrapped in rrails --. The prompt never seems to appear.

$ rrails -- rails s
=> Booting Thin
=> Rails 3.2.6 application starting in development on
=> Call with -d to detach
=> Ctrl-C to shutdown server
>> Thin web server (v1.4.1 codename Chromeo)
>> Maximum connections set to 1024
>> Listening on, CTRL+C to stop
From: /home/yuval/.rvm/gems/ruby-1.9.3-p194@yuviliosite/gems/refinerycms-pages-2.0.5/lib/refinery/pages/section_presenter.rb @ line 15 Refinery::Pages::SectionPresenter#initialize:
    15:       def initialize(initial_hash = {})
 => 16:         binding.pry
    17: do |key, value|
    18:           send("#{key}=", value)
    19:         end
    20:       end
$ rrails -- rails console
Loading development environment (Rails 3.2.6)

walf443 commented Jul 17, 2012

Sorry. I will not support REPL on rrails because of archtecture of rails. (but patches welcome.
If you want to use REPL frequency, I recommend to have one more window that run "rails console".

"rails-sh" is similar to rrails. It support REPL. It may be better for you.

@walf443 walf443 closed this Jul 17, 2012

yuvilio commented Jul 17, 2012

Yep, rails-sh was what I was looking for for the REPL use case. Thank you for point it out.


walf443 commented Oct 15, 2012

supported by #7.


quark-zju commented Oct 15, 2012

In fact, REPL is support after #5 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment