Displaying 20 results from an estimated 10000 matches similar to: "console doesn''t work"
2006 Jul 25
3
about ERB sample
Hi list:
I run the ri''s ERB doc 1st sample
1. require ''erb''
2. x = 42
3. template = ERB.new <<-EOF
4. The value of x is:
5. EOF
6. puts template.result(binding)
the doc say it will print
"The value of x is: 42"
but my irb print "nil" and there is a
"=> #<ERB:0x2970b24
2006 Aug 16
7
ActionWebService: XMLRPC Server Multicall possible?
Hi all,
I have a question concerning ActionWebService XMLRPC servers: Is it
possible to send multicall requests to the Web service? I tried to
use multicall and get the error message:
no such method ''system.multicall'' on API [MyAPI]
In Changeset 2021 there is the following commit message:
add ''system.multicall'' support to XML-RPC. boxcarred methods must
2006 Mar 28
11
ActionWebService date casting error
I have defined a web service to return information from a database as follows.
class BackendApi < ActionWebService::API::Base
api_method :find_all_vobs,
:returns => [[:int]]
api_method :find_vob_by_id,
:expects => [:int],
:returns => [Vob]
class BackendController < ApplicationController
wsdl_service_name ''Backend''
2006 Mar 22
14
currency conversion webservice in a rails app?
Hi,
I''m interested in using a currency conversion web service in my rails
app. Does anyone have a free service that they use and like? I found
this one
http://www.webservicex.net/WS/WSDetails.aspx?CATID=2&WSID=10
I''ve tried to make a simple, plain Ruby script to connect to this and
get a conversion rate without success.
How do I integrate a webservice into my rails app? I
2006 Sep 06
9
Which analyzer to use
Lucene''s standard analyzer splits words separater with underscores.
Ferret doesn''t do this. For example, if I create an index with only
document ''test_case'' and search for ''case'' it doesn''t find anything.
Lucene on the other hand finds it. The same story goes for words
separated by colons.
Which analyzer should I use to emulate
2006 May 10
1
Problems With Console
I just recently got Ruby on Rails and am having some problems with ./
script/console. Whenever, I enter the command, I get this:
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 /usr/lib/ruby/1.8/irb/init.rb:218:in `require''
2007 May 10
1
errors using ruby script/console
HI all, when i try to use the rails console with this command, ruby
script/console, i got the following errors:
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such
file to load -- readline (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require''
from
2005 Dec 14
2
errors while starting console...
Hello,
when i try to start the console (./scripts/console) i get the following
error
./script/console
Loading development environment.
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/console.rb:23:in
`exec'': No such file or directory - irb -r irb/completion -r
script/../config/../config/environment --prompt-mode simple
(Errno::ENOENT)
from
2006 Jun 17
4
ruby script/console fails to launch
Can someone please explain why I am see the following:
<snip>
rails/uploadimage> ruby script/console
Loading development environment.
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such file
to load -- readline (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules''
from
2006 Apr 11
9
Rails failure after upgrade to 1.1.2
Greetings,
I tried upgrading Rails to 1.1.2 and now nothing is really working. In
connection to the Rails upgrade I upgraded my Ruby version to 1.9.0. I
also upgraded all my gem installs.
Since my old rails apps stopped working I tried generating a fresh one
, alas with the same result. Below I included the full trace when
trying to reach the app. Line 3 in application.rb is :
class
2006 Oct 09
1
error running 'ruby script/console' => "uninitialized constant RAILS_ROOT" ??
Hi,
Anyone suggest why when I try to run the console via ''ruby script/console'' I
get the following "uninitialized constant RAILS_ROOT" ??
Error:
================================
V:\Source\testapp>ruby script\console
Loading development environment.
./script/../config/../config/environment.rb:3:NameError: uninitialized
constant RAILS_ROOT
2010 Mar 03
2
Memcached: "no such file to load -- memcache-client" when running script/console
Hi folks. I''ve started down the memcached path and everything was
running grand until I decided to start up my console. I have manually
installed libevent 1.4.13 and memcached 1.4.4 into /usr/local,
following which I sudo gem installed memcache-client and SystemTimer.
development.rb has been modified to do caching with the
mem_cache_store.
The memcached process seems to work and my
2006 Jul 12
11
ruby-debug 0.1.3
Hello Everyone,
I''m pleasant to announce the release of ruby-debug 0.1.3.
If you think that ruby-breakpoint is too limited for your needs and
debug.rb brings your application to its knees, you might find
this small extension useful.
INSTALL
It''s a usual procedure:
$ gem install ruby-debug
DOCS
This library has almost identical interface with the standard debug.rblibrary.
2006 Sep 09
3
Per field analyzer
Is there a way to add per-field analyzer? I can''t seem to find a way to do that.
Thanks
--
Kent
---
http://www.datanoise.com
2006 Apr 14
8
Error with Web Service tests after upgrading to Rails 1.1.2
Hello.
I hope this is the right place to describe my problem ?
After upgrading to Rails version 1.1.2 from rails version 1.0.0, Web
Service functional tests seem broken.
I upgraded rails (as the root user / administrator) with:
# gem update rails --include-dependencies
then I upgraded my application (as myself) with:
? rake rails:update
% rake rails:update:configs
After these steps,
2005 Dec 19
8
Simply Ruby question: "zerofill"
Hi there-
What''s the easiest/most efficient way to perform a zerofill in Ruby?
i.e. Given the value ''val'', I would like to do something like:
val = 43
puts val.zerofill(8)
---> "00000043"
gsub? sprintf of some sort?
Jake
--
Posted via http://www.ruby-forum.com/.
2006 Aug 10
5
Major security vulnerability in the latest Rails 1.1.5
Hi,
I think there is still a major vulnerability exists in the latest Rails 1.1.5.
The problem is in the routing.rb file and safe_load_paths method.
Because of the erroneous regexp it is possible to perform a DOS attack
on any rails application.
To reproduce:
1. start your application
2. use this url: http://localhost:3000/debug
Routing module will load standard debug.rb script which stops a
2006 Jul 28
8
mass emails
Say we have 20k-50k users signed up for an email newsletter. Does
anyone have any data on how well ActionMailer does with mass emails?
How long would that take to send? Anything I should watch out for?
Thanks,
Joe
2009 Mar 21
6
script/console: "no such file to load -- application.rb (MissingSourceFile)"
Here''s what I get when I try to use the console with the current facebooker:
First I make a simple app:
rails foo -d mysql
cd foo
script/plugin install git://github.com/mmangino/facebooker.git
Then I go to config/environment.rb and change the rails version to
''2.2.2'' Then I run the console:
script/console
and I get:
[17:56][herdrick:~/rails/foo]$ script/console
2006 Aug 01
2
apache and fcgid
So I decided to just go with apache2 and fcgid. I looked into Mongrel
and apache and I looked into lighttpd and fastcgi and found both to be
too time consuming and not well enough documented for what I''m doing.
My question is, how do I set up apache and fcgid to actually work? I got
apache installed. I think I got fcgid installed (I read somewhere all I
have to do is move the