Displaying 20 results from an estimated 4000 matches similar to: "How can I taalk to our AS/400?"
2005 Dec 28
4
Changing encoding on text
Hello,
I have a set of templates creating some files for me. All data on my
site is encoded using iso-8859-1. Now I want to save the text in the
file using utf-8. I have tried using iconv, but whenever I have the
require "iconv" statement in my model, there is some error happening in
the model and the model doesn''t get loaded (not sure how to debug that).
What approches to
2007 Nov 21
7
describe scope
Hi,
Googling ''RSpec describe scope'' didn''t yield much, so apologies if
this question has been dealt with.
It seem well known that a ruby class is ''visible'' between describes,
and if this is a problem then you should use some counter as prefix or
suffix:
''class Item_001; ... end''
Is there any work underway, or sheduled release where
2006 Mar 31
2
Backslash Escaping in View
Ok, I''m hoping this won''t be a forehead slapper, but take a look at this code:
physician.name.sub(/''/, "\\''")
I''m trying to substitute a single quote with a backslash and a single
quote. This seems pretty simple right? Well, someone kick me and
tell me why it''s not :)
Here''s what I''m getting if the
2006 Jan 22
3
Download an Image using Net::HTTP
Hi,
I need to download an image, and I''ve mucked about with Net::HTTP
resp = Net::HTTP.get_response(''www.mydomain.com'', ''/test.jpg'')
f = File.new("test.jpg","w")
f.write(response.body)
And various other combinations using HTTP.get etc. Anyway, I get an
image, but it looks very psychedelic. This is obviously not the correct
way.
2006 Mar 15
7
O''Reilly Rails Cookbook on Rough Cuts
Subject says it all. Anybody taken a look yet?
http://www.oreilly.com/catalog/railsckbk/?CMP=ILC-GG7423313304&ATT=railsckbk
After buying the Ruby Cookbook and the other Rails book, I''m pretty
gunshy about another Rough Cuts purchase.
Sean
2006 Oct 24
1
Broken thread Safe connection Management on Mysql (Mysql too many connections errors)
Hi,
There is an issue on socket connection with backgroundrb (rev 47) and
mysql backend: after a certain number of job you reach the mysql
connection limit as socket are never closed and nobody can connect to
mysql anymore till you stop the backgroundrb daemon.
Already reported on:
http://rubyforge.org/pipermail/backgroundrb-devel/2006-July/000066.html,
2006 Jul 31
6
Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
I followed Duncan Davidson''s Sandboxing Rails with Darwin Ports guide and
everything went fine up till the part where I had to install gems using gem
install. I would get this stacktrace:
Attempting local installation of ''rake''
Local gem file not found: rake*.gem
Attempting remote installation of ''rake''
2005 Dec 06
5
How to set a default value?
Hello,
I have a price field that I validate of numbers.
How can I default a 0.0 value?
Regards,
Frank Rocco
farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
2007 Dec 10
8
could not find activerecord-sqlserver-adapter locally or in a repository
I''m trying to connect to a SQL Server db. I thought I installed the
DBI component per the instructions, but its not working.
When trying to start the ruby server, I get the message:
Please install the sqlserver adapter: `gem install activerecord-
sqlserver-adapter`
But when I try to install the repository, I get this error message:
could not find activerecord-sqlserver-adapter
2007 Jan 25
1
Link to possible code for symbolic chmod
I''m not sure if this is perfect, but it seems to work well for me so far.
I haven''t tried to integrate it into Puppet because I''m still a bit new to
Ruby.
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/96956
Trevor
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
2006 Jan 16
2
Curl help
I''ve been searching around for a curl implementation on ruby and havn''t
had much luck. I have run into open-uri and Net::HTTP but they just
arnt as robust as curl. The closest thing i found was this previous
thread from July
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/149926
on using ruby-dl to load libcurl. Has anyone gotten any farther on this
2007 Nov 09
2
RubyConf 2007 - Thoughts?
Hi,
For those of you that attended RubyConf 2007, what were your impressions?
Any more thoughts on JRuby, Rubinius, IronRuby or Wuby?
Regards,
Dan
2006 Mar 21
8
AS/400?
Any success stories using rails against a DB2 database on an as400?
If so, how?
Thanks
Ed Schechter
--
Posted via http://www.ruby-forum.com/.
2007 Jan 29
4
loading C extension in worker causes bus error on OS X only
In all likelihood, this doesn''t have anything to do with backgroundrb,
but I''m stuck so I thought someone might be able to help.
I have a pretty simple C extension that I built into a gem and have
installed on my system. It works fine when required from rails
(1.2.1).
But when I have a Backgroundrb worker class use the extension (under
os x), I get:
2007 Feb 26
5
Continuing a "specify" block after failure
I have some high-level acceptance tests that read a bunch of files,
process them, and then confirm that the processed output matches the
expected output. That is, for each file "a.input" I have a
corresponding file "a.expected" and I basically want to churn through
all of them producing "a.processed" and making sure that
"a.processed" equals
2005 Dec 14
2
still stuck on windows lighttpd config
Hello,
I have my app in C:\Program Files\lighttpd\htdocs\receipts
I do not know what to change in the lighttpd.conf to run this.
What paths do I need and what fastcgi setting to find this?
Thanks
Frank
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Dec 14
3
help - how do I send an email ?
Hello,
I cannot get a simple email to work.
What is the syntax to send an email?
I have actionMailer defined in environments.rb
Thanks
Frank
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Dec 25
2
How do I install user_engine & login_engine?
Hello,
I have a Mac & PC and want to install these plug-ins.
I do not understand the svn, what commands do I use?
Thanks
Frank
2005 Dec 08
7
Help shut down webbrick on mac?
Hello,
I just installed radrails and it will not run the webbrick because a
version is already running on my mac.
I do not know how to shut down the mac version.
Thanks
Regards,
Frank Rocco
farocco-H+0wwilmMs3R7s880joybQ@public.gmane.org
2006 May 17
3
Help mixin in class methods
Starting to feel more confident and code is DRYing up nicely, but I''ve
hit a brick wall here and hoping someone can help me.
I''ve got a module, TrustRanking, which extends a number of model''s
instance methods, and I want to extend their class methods too, but I
can seem to work out how to do it.
Simply including the module from the class works a treat for the