Displaying 20 results from an estimated 120 matches similar to: "Find all the methods on a object in an irb session?"
2006 Jan 04
3
Legacy Table works-except edit?
Greetings,
I''m trying to put a Rails face on a Legacy Oracle 10 table. I am
currently setting the table_name and primary_key, and I get the list
and show to work fine.
However, when I hit edit I just get the Editing <table name>, Edit
button, Show, and Back. None of the fields are rendered.
Why would I be able to show these fields in the show and list, but not
edit them in the
2005 Aug 28
7
Unicode support in FXRuby 1.6
All,
As some of you know, Jeroen has added support for Unicode strings in
the unstable development version of FOX (version 1.5). I''m trying to
plan ahead to decide how best to support this for FXRuby 1.6, but I
don''t really know anything about Ruby''s support for Unicode or i18n in
general. If you''re familiar with this topic (how/if Ruby deals with
Unicode
2006 Apr 07
5
Are there any Czech people using Rails?
Hello,
how do you solve the problems with czech characters? Do you use unicode
or ISO-8859-2/WIN1250? How do use methods like String:upcase etc. that
dont use czech characters?
I would appreciate any hints for this.
Thanks,
David Marko
--
Posted via http://www.ruby-forum.com/.
2006 Feb 17
4
PayPal WSDL API on Rails anyone ?
Hi !
Has anyone connected to the Mass Pay API of PayPal using Rails ? I
need to do this for a customer, and I wanted to know how easy/hard it
was. I have no experience using SOAP, WSDL, etc.
I saw soap4r[1] on the RAA[2]. This is probably what I''ll need to
use. One question I haven''t answered yet is whether soap4r will
accept PayPal''s certificates ?
Thanks for any
2006 Aug 03
3
Swedish Rails
I would like to announce my plugin Swedish Rails.
Rails provide many goodies and helpers for you, but some of these are
dependant on your user interface being in english. Date controls, for
example. Pluralization is another. And have you ever tried to capitalize
a string with Swedish letters in them? Then you know it doesn''t work
that well. Until now, that is. You install this
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 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 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
2006 Feb 09
1
Irb Web Interface
I was wondering how to give the Ruby on Rails console a web interface
like this website http://tryruby.hobix.com/.
--
Posted via http://www.ruby-forum.com/.
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
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
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 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 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
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
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