ruby-on-railsconsolejruby

Rails console runs without prompt


When I run my rails console I got something like this:

Loading development environment (Rails 3.2.3)
/Users/sebastiannowak/.rvm/gems/jruby-1.6.7@global/gems/bundler-1.1.0/lib/bundler.rb:254 warning: shadowing outer local variable - path
Switch to inspect mode.
Time.now
Time.now
2012-06-27 09:27:21 +0200

As you can see I can interact with console but it is quite uncomfortable. I run JRuby 1.6.7. Somebody has such issue?


Solution

  • Most probably somewhere in you ~/.irbrc, you're doing:

    IRB.conf[:PROMPT_MODE] = :XMP
    

    Try removing that line. Or change it to:

    IRB.conf[:PROMPT_MODE] = :SIMPLE