Displaying 20 results from an estimated 10000 matches similar to: "IRB -- Readline -- WinXP"
2006 Jun 13
0
script/console and IRB readline failure
Long input lines are confusing the readline on my script/console and irb sessions. I hit
back-arrow and suddenly the cursor goes up to the next line. Thereafter the previous-line
fails to work, giving me just an ampersand (&) instead of the previous line to re-edit.
WinXP SP2.
Warren Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 17
0
Using a New Builder Version
Hey, folks!
It looks like the version of Builder that''s included with Rails
doesn''t properly escape characters like ampersand in attribute
values, while the current version of Builder (2.0) does.
I''d like to use this new Builder gem, but I can''t seem to get it to
work. I''ve included the following lines at the top of the controller
that needs
2006 Jun 08
21
"Rails recipes" vs "Rails cookbook"
Reviews Wanted.
I''ve read the tables of contents and haven''t yet made up my mind.
Is one book clearly better than the other? Is one clearly full of bugs? Is one so much
further ahead that there is no choice? Are they both so incomplete that I should just
wait and only cook real food? Do trains still have dining cars?
Warren Fred
-------------- next part --------------
An
2006 Feb 21
29
script/console
The agile book says "You can inspect variables, set values, add other
breakpoints, and generally have a good time".
This is very sweet and totally useless. For example, I want to see the session variable,
the cookies variable and so on. These names are unknown. I think I guess that the things
that are available depend on where you put the breakpoint() call. I''ve tried a
2010 Aug 27
0
Syntax highlighting in IRB || Script/Console
Railers,
I would like to know if there is a way of changing colors for IRB standard
input ($stdin). What I am interested in "is having IRB highlighting syntax
as I type". Among other stuff, I would like to be able to:
- set its background colours
- have differing colours for strings, variables, keywords, e.t.c.
I do use Wirble and Term-ansicolor gems, and they are fine when it
2007 Feb 03
0
Bus error in IRB when trying: require "fox16"
On 2/2/07, Zane <zcvohland at gmail.com> wrote:
> I have spent a couple of days trying to get the Fox GUI library to
> interact with ruby. Now I think I am getting close. Before I go on to
> explain my problem here is some information that may be necessary...
<snip>
> Software Versions:
> ----------------------
> Ruby 1.8.1
Just curious: Why still running Ruby
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
My linux Ruby application is using Ferret 0.11.4. I created my own class IndexSearcher to contain
the Searcher of multiple directories. If I do not have the searcher.close called, the end of
runner/console or runner/server will pop out with system error:
*** glibc detected *** irb: double free or corruption (fasttop): 0x0a51d6c0 ***
======= Backtrace: =========
/lib/libc.so.6[0x638ac1]
2006 Jun 23
2
Using fixtures from IRB
Folks,
I have the standard setup with auto-generated unit tests and
fixtures. I edited the fixtures and the tests but would now like to
test associations from irb. How do I do this?
I''m not sure how to load my fixtures into irb, for example. Once they
are loaded I would create objects, save them to the db and pull
things out.
Thanks, Joel
--
http://wagerlabs.com/
2010 Oct 07
3
IRB problem (rb1.9.1 +rails3.0 )
first post in this forum...
I have ubuntu 10.04Lts / rb1.9.1+ rails 3.0...
when I am trying to use irb... ($rails console) I get this...
I have tried to reinstall everything(irb ruby readline by synaptic)
but nothing came up
any help would be nice ! thanks in advance... !
mihaill@mihaill-laptop:~/www/blog$ rails console
/usr/local/lib/ruby/1.9.1/irb/completion.rb:9:in `require'': no such
2008 Oct 27
2
IRB error message (dyld: NSLinkModule() error)
Hi folks,
I''m new to Rails. I picked up Simply Rails 2 by Patrick Lenz a few weeks
ago and I finally sat down to get stuck into it. I have Rails installed
on my iMac (OS X Leopard) and I can load up the Rails Welcome screen at
localhost:3000 without any issues.
My problem is with running IRB within Terminal.
If I try to run:
irb> 1
I receive the error:
dyld: NSLinkModule() error
2006 Mar 27
0
RMagick + Cygwin = IRB Crash !!
Hi,
I am reinstalling rmagick on my pc and I am running into this issue:
in irb > require ''RMagick''. Boom irb crashes no messages, no stack.
I have installed GraphicMagick 1.1.7 and can run it from the command
line:
ie > inspect.exe xx.gif
I have installed rmagick.1.10.1 and it shows up in my gemlist and the
installed
looks successfull. Running the rmagic
2006 Mar 27
0
Crashing irb...
in irb > require ''RMagick''. Boom irb crashes no messages, no stack.
I have installed GraphicMagick 1.1.7 and can run it from the command
line: ie > inspect.exe xx.gif. I have installed rmagick.1.10.1 and it
shows up in my gemlist and the installed looks successfull. Running the
rmagic test I get the following error > ruby -v -x inspect.rb xx.gif
ruby: no Ruby script
2012 Mar 05
0
Rails 3 - How can you get access to current_user in the IRB console?
I''m doing some design/debugging in IRB and need to login a user and then be
able to gain access to current_user in my efforts (I''m using Devise for
authentication.)
I found a sequence from SO that allows me to successfully login via IRB and
access a page response:
>> ApplicationController.allow_forgery_protection = false
>> app.post(''/sign_in'',
2009 Aug 18
2
DBI: connect succeeds in IRB, fails in Rails
require ''dbi'' # 0.4.2
dbh = DBI.connect(''DBI:ODBC:PACS'', ''username'', ''password'')
This works in IRB; in Rails it fails (taken from Rails console):
DBI::InterfaceError: Unable to load driver ''ODBC'' (underlying error:
uninitialized constant DBI::DBD::ODBC)
from
2007 Nov 26
2
ruby-debug 0.9.3 and Rails 2rc1: falls directly to irb
Hi
When starting my Rails 2rc1 app with "script/server --debugger", the
console falls directly into irb once a "debugger" statement is
encountered.
Any idea what I have to do in order to be thrown into the debugger
rather than irb?
Many thanks, -sven
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message
2007 Jan 23
0
Inconsistency of data in controller and irb
I have a find query in a controller like this
def loadtags(product)
@tags =
Tagging.find_all_by_taggable_type_and_taggable_id(0,product.id)
puts product.id
puts @tags.collect{|x| x.id}
@tags.collect!{|x| x.id}.collect!{|x| Tag.find(x)}
puts @tags.collect{|x| x.name}
puts ''----------------------------''
@tags
end
and I test with the same parameters in irb
but
2007 Jul 23
1
readline (LoadError)
hi,
i''m a noob in ror, today i bought a book to learn ror.
i do everthing that stand''s in this book, and the shit does''t work!
i use Aptana IDE with RadRails
the problem is:
Loading development environment.
/usr/lib/ruby/1.8/irb/completion.rb:10:in `require'': No such file to
load -- readline (LoadError)
from /usr/lib/ruby/1.8/irb/completion.rb:10
from
2006 Oct 05
0
script/console - no such file to load -- readline
Hi there,
I just set up ruby and rails and now whenever I run script/console I get
this error:
Orenad:~/Sway/Projects/mi7/trunk/mi7 dave$ ruby script/console
Loading development environment.
/usr/lib/ruby/1.8/irb/completion.rb:10:in `require'': No such file to load --
readline (LoadError)
from /usr/lib/ruby/1.8/irb/completion.rb:10
from
2005 Nov 19
0
Missed readline on mac os x? [HELP]
Hi,
I installed ruby 1.8.2 without problem, using the binary provided
on the ruby on rails site for Mac Os X
All works fine, but ruby cannot find the readline library:
[0:Documents/workspace/manhattan> ruby script/console
Loading development environment.
/usr/lib/ruby/1.8/irb/completion.rb:10:in `require'': No such file to
load -- readline (LoadError)
from
2009 Nov 17
0
No such file or directory - /usr/local/lib/ruby/1.8/sparc-solaris2.10/readline.so (LoadError)
I am trying to run console on a Solaris server and I get this error:
-bash-3.00$ script/console
Loading development environment (Rails 2.3.4)
/usr/local/lib/ruby/1.8/sparc-solaris2.10/readline.so: ld.so.1: ruby:
fatal: libedit.so.0: open failed: No such file or directory - /usr/
local/lib/ruby/1.8/sparc-solaris2.10/readline.so (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10