Displaying 20 results from an estimated 10000 matches similar to: "script/console and IRB readline failure"
2006 May 16
0
IRB -- Readline -- WinXP
I keep on running into an irb/readline bug in script/console or plain irb. If the line
lengths get to long then up-arrow won''t bring up the line properly. I guess that the
readline buffer is only so many characters long and I''m clobbering something. After it
gets clobbered then up-arrow only prints an ampersand.
W
-------------- next part --------------
An HTML attachment
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
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 Jun 19
5
Wysiwyg HTML Editors and Rails ?
What wysiwyg html/CSS editors do people recommend. I''m mainly interested in FOSS programs
that I can run on WinXP. Sometimes you just have to create some mostly-static pages and
make them look nice. I see that Guy Kawasaki is using Nvu, which is based on Mozilla
composer. Any of you guys have any experience with that?
Warren Fred
-------------- next part --------------
An HTML
2006 May 17
3
Session in ActiveRecordStore
The Agile book seems to say I should specify this as follows, probably in the
environments.rb:
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:database_manager] =
CGI::Session::ActiveRecordStore
BUT the environments.rb file would have me Un-Comment this:
config.action_controller.session_store = :active_record_store
Anyway, I''ve tried both, and in both cases it
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
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'',
2006 Jan 12
4
Domain Registration -- Private ?
The domain registration companies are pushing an add-on called ''Private Registration''
where they keep your email and other personal info secret to prevent spam. Is this a good
deal? Is it needed? Do you have it? Do you wish you did?
Warren
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 14
4
possible to reload a model in script/console(irb)?
I often use script/console to interact with models.
It would be nice if script/console acted like WEBrick when it comes to
reloading classes that get updated. Anyway to do this?
Short of this, is there a way to tell script/console to reload a class
manually? My current solution is to exit and restart script/console.
-Kelly
-------------- next part --------------
An HTML attachment was
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
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 Jan 25
14
Salted Hash Login Generator
Does this work with rails 1.0 ? I saw that people said it failed with rails 14.1, which
practically identical.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060125/5da24694/attachment.html
2006 Jun 09
18
Is IRB the ruby console ?
I''m running script/console but keep getting the message that irb.bat is not
recognized as an internal or external command, operable program or batch
file.
If it means anything I am running instant rails. I can invoke irb straight
forward.
TIA
Stuart
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 Dec 22
8
Payflow Pro (was Re: FatWreck.com - New Rails Site)
Several years ago, before PHP introduced their built-in pfpro functions, I
rolled my own crappy interface, which of course delegated to the commandline
payflow client. I could certainly do the same in Ruby today.
Thinking back on it, I realized at the time, and realize again now, that
delegating this functionality to a commandline app is a security risk unless
you''re the *only* user on
2006 Apr 29
4
Wild SQL -- public/500.html -- postgres-pr
Every page of my DEPOT on Postgresql rails app now gets an error from postgres-pr about
some wild left-join SQL that has nothing to do with my tables:
SQL (0.000000) NameError: undefined local variable or method `errors'' for
#<PostgresPR::Connection:0x3b200c0>: SELECT a.attname, format_type(a.atttypid,
a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN
2006 Apr 28
35
what''s your rails wishlist?
I''ve been working with rails for a while now. Rails is the second web
framework I''ve tried. It blows the doors off catalyst (perl''s best
framework). I even just wrote my first plugin (broomstick). Ruby''s
ability to meta-program blew me away with it''s ease of use. I''ve been
so impressed with the helpers that rails uses to make a lot of
2007 Mar 21
0
[908] branches/wxruby2/wxwidgets_282/doc/textile/control.txtl: Add note on use of ampersand characters in Wx::Control labels
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2006 Feb 23
6
irb with rails
I was trying to access rails functions (number_with_precision) from an
irb session.
It can''t find the method. How do I load the libraries ?
TIA
LS
--
Posted via http://www.ruby-forum.com/.
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/
2006 Mar 12
2
Find all the methods on a object in an irb session?
How can I find all the methods on an object from withing irb?
Thanks,
Joe