similar to: ruby-debug 0.9.3 and Rails 2rc1: falls directly to irb

Displaying 20 results from an estimated 30000 matches similar to: "ruby-debug 0.9.3 and Rails 2rc1: falls directly to irb"

2005 Aug 25
4
how to use ruby debugger instead of irb from script/breakpointer
Hello - I would like to use the ruby debugger instead of irb for a breakpoint enabled by script/breakpointer in order to step through some code. How do I do that? Aaron
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
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/.
2011 Feb 03
2
Possible to ask rspec to show more code in the debugger?
This came up from an other issue where I needed to go check something in test::unit. Immediately when I dropped into the debugger in test::unit I saw something I have been missing: test unit by default shows a number of lines of code. Is there a way to make the rspec debugger do this? I am not sure if it is just me, but seems to me that when I moved to rspec, certain things which seemed to be
2008 Jul 05
0
Undefined Method Angst After Rails / Ruby / Gem Updates
I have what appears to be a problem accessing methods from within an application. I can access them from irb, but not from within the app. In other words: irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''haml'' => true irb(main):003:0> Haml.respond_to?(''init_rails'') => true
2006 Mar 08
5
Ruby/LDAP on Rails
This is wierd. I''m trying to get Ruby/LDAP up and working, and at least the basics work fine under irb: irb(main):001:0> require ''ldap'' => true irb(main):002:0> LDAP::Conn.new() => #<LDAP::Conn:0x1b87ac> irb(main):003:0> So far, so good. All LDAP::Conn.new does is call ldap_init with host and port parameters, which in turn just allocates the
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
2006 Jul 17
3
Extending Ruby classes in Rails
Hi. I''ve placed the following in lib/mods.rb: class String def String.foo "bar" end def bar "baz" end end But it does not get picked up: white:~/svn/tagticks morten$ script/console Loading development environment. >> String.foo NoMethodError: undefined method `foo'' for String:Class from (irb):1 >>
2009 May 03
13
Ruby or Rails bug?
In irb all works fine: # irb irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''raspell'' => true irb(main):003:0> speller = Aspell.new("ru_RU") => #<Aspell:0x7f8692c9d158> irb(main):004:0> speller.suggestion_mode = Aspell::NORMAL => "normal" irb(main):005:0>
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 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 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
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 Mar 22
2
Proposal for Ruby on Rails for the SOC.
Hi list, I''m sorry to come here talking about this (since I realize you have many, far better things to do, but I''d really like your feedback on an idea I have for the summer of code. I''d like to work with the guys at Ruby Central on implementing a feature for Ruby on Rails, and since you guys are the best source of information on the subject, I''d like to ask