Displaying 20 results from an estimated 20000 matches similar to: "Inconsistency of data in controller and irb"
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]
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 04
2
has_many working correctly only on reload!
I have this code that is using svn externals with rails EDGE working 
fine for the past couple of months. A couple of days ago, this code 
died.  Even after deleting vendor/rails, this code doesnt work:
class Tag < ActiveRecord::Base
  has_many :taggings
  has_many :events, :through => :taggings
  has_many :users, :through => :taggings
end
class User < ActiveRecord::Base
  # Virtual
2006 Jan 06
2
IRB hex values
Hi all,
Im working on a copy contact info into project method. Nosing aroundwith IRB I 
see a hex value. Named Contact:0x40ca01cc
 #<Contact:0x40ca01cc @attributes={"name"=>"GP-net", "id"=>"7", 
"lastname"=>"Petersen", "firstname"=>"Gerard"}>
Why is it there like that and not in a human readable
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
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
2006 Aug 29
2
"Broken pipe" and "no such file to load -- irb"
I just switched my rails app, which I had previously been running on my pc,
to my linux server and have decided to use mongrel.  However, since doing so
I get an error when I first access the app saying "no such file to load --
irb".  After I refresh this error goes away, but I keep getting the
following errors in my logs, and I''ve noticed that certains things, like
sessions and
2013 Jun 21
7
IRB help
I''m new to Ruby.  I installed Rails on Windows 8.  
When I type mkdir in IRB, I''m getting this.  I tried running the IRB as 
administrator too, and still get the same result
irb(main):001:0> mkdir lesson2
NameError: undefined local variable or method `lesson2'' for main:Object
        from (irb):1
        from C:/RailsInstaller/Ruby1.9.3/bin/irb:12:in
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 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
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:
2007 May 21
0
updating a column using irb,
I added the count field to post model and like to update its value to 0
using irb.
Ps: New bee
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to