Displaying 20 results from an estimated 10000 matches similar to: "Multi-column primary key in joining tables"
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
2005 Dec 21
4
How can I taalk to our AS/400?
Hello,
I can do this in java, but want to use Rails.
How can I connect to our AS/400?
Thanks
Frank
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
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 Dec 15
8
Early morning strange error saying: Status: 500 Internal Server Error
So I have updated to the latest mongrel and fastthread and my
environment is as follows:
Debian 3.1
Rails 1.1.6
Ruby 1.8.5
Mongrel 0.3.18
Fastthread 0.4
Mongrel Cluster 0.2.1
Apache 2.2.3
I again woke up this morning to my disappointment of seeing the
strange Status: 500 Internal Server error. It happens the same every
morning, I have three mongrels running, two give the error, one
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''
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
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
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
2007 Jan 04
10
Intermittent "can''t convert Float into Hash" and results.rb
Hi,
I''m using backgroundrb 0.2.1 in a production environment and for most
parts I''m very happy. We are using it to do some heavy video editing on
the server side and it works great except that under, what seems heavy
load the below problem happens intermittently.
The problem has only happened 5 times out of over 500 runs by our
backgroundrb worker.
This is the code in our
2008 May 26
9
App#process_message
how can rewrite the App # process_message to treat the messages of the
system?
wxruby
--
Posted via http://www.ruby-forum.com/.
2007 Sep 23
16
WinRuby?
Hi all,
With the latest 1.8.6 release out today, I was wondering - what would
you all think of a Windows-only fork of Ruby? I mean Perl has
ActiveState, right? It ships with a slightly different interpreter and
different libraries, so why not Ruby?
Here''s what I''m thinking:
* Win2k or later. No 95/98/ME support. No cygwin/mingw, either.
* Assume VC++ 8. Use whatever
2006 May 18
2
rails and .net webservices
Hello.
I am novice in ruby.
How can i use .net webservice method from ruby.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 11
3
Helper methods for ActiveRecord
Hi all,
I have several models which all have an email field. This email address
should of course be validated and for that I have this nice regex. But
now I have the email validation method copied throughout my different
models. Which is clearly stupid. I figured I needed a helper (module?)
and use this helper I my models. But I can''t seem to find anyway of
helpers for models, only