Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

REPL support? #2

Closed
yuvilio opened this Issue · 4 comments

3 participants

@yuvilio

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 http://0.0.0.0:3000
=> 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 0.0.0.0:3000, 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:         initial_hash.map do |key, value|
    18:           send("#{key}=", value)
    19:         end
    20:       end
$ rrails -- rails console
Loading development environment (Rails 3.2.6)
@walf443
Owner

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.
https://github.com/jugyo/rails-sh

@walf443 walf443 closed this
@yuvilio

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

@walf443
Owner

supported by #7.

@quark-zju

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
Something went wrong with that request. Please try again.