# Top

**URL:** https://www.ruby-forum.com/top.md?page=1362

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1363

---

## [Tool for visualizing schema and associations](https://www.ruby-forum.com/t/tool-for-visualizing-schema-and-associations/183001)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 5\
**Last updated:** [February 9, 2010, 10:15pm UTC](https://www.ruby-forum.com/t/tool-for-visualizing-schema-and-associations/183001 "2010-02-09T22:15:26Z")

</div>

I’m working with other people on a Rails project with a fairly “deep” set of interconnected data. This is the first time I’ve tried to discuss data organization with non-database-savvy folks (they know and understand …

---

## [How to capture all conditions using regex](https://www.ruby-forum.com/t/how-to-capture-all-conditions-using-regex/181036)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 5\
**Last updated:** [January 4, 2010, 9:33am UTC](https://www.ruby-forum.com/t/how-to-capture-all-conditions-using-regex/181036 "2010-01-04T09:33:46Z")

</div>

Hello, irb(main):001:0\> x=“123 456 789” =\> “123 456 789” irb(main):003:0\> if /\\d{3}/ =~ x irb(main):004:1\> puts $& irb(main):005:1\> end 123 For the statement above, I want to capture all “123” and “456” and “78…

---

## [Update counter cache for 2 models](https://www.ruby-forum.com/t/update-counter-cache-for-2-models/176341)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [September 29, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/update-counter-cache-for-2-models/176341 "2009-09-29T13:02:50Z")

</div>

Let’s say I have the following models: User, has\_many :messages, :topics Forum, has\_many :topics Topic, belongs\_to :user, has\_many :messages Message, belongs\_to :user, :topic How to tell both User and Topic, that a …

---

## [All possible ways of iterating](https://www.ruby-forum.com/t/all-possible-ways-of-iterating/174777)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 5\
**Last updated:** [September 3, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/all-possible-ways-of-iterating/174777 "2009-09-03T22:51:19Z")

</div>

Hey, I am just curious as to what are all the possible methods of iterating through a code block in ruby. Thanks.

---

## [Query](https://www.ruby-forum.com/t/query/172753)

<div class="topic-metadata">

**Author:** [@hunt](https://www.ruby-forum.com/u/hunt)\
**Replies:** 5\
**Last updated:** [July 28, 2009, 12:42pm UTC](https://www.ruby-forum.com/t/query/172753 "2009-07-28T12:42:21Z")

</div>

hi friends, I hav a query to ask… class A def self.go return A.new end def method\_missing( method\_name) puts in methodmissing puts " #{method\_name} method is missing" end end a = A.go a.name # a.name will pri…

---

## [\[Bug #1410\] irb shows some messages on boot](https://www.ruby-forum.com/t/bug-1410-irb-shows-some-messages-on-boot/166505)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 5\
**Last updated:** [April 27, 2009, 8:59am UTC](https://www.ruby-forum.com/t/bug-1410-irb-shows-some-messages-on-boot/166505 "2009-04-27T08:59:14Z")

</div>

Bug #1410: irb shows some messages on boot http://redmine.ruby-lang.org/issues/show/1410 e$B5/I\<\<Te(B: Nobuhiro IMAI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-04-26 trunk 23293) \[i686-…

---

## [Rails requires RubyGems \>= 1.3.1 (you have 1.1.1) on OSX](https://www.ruby-forum.com/t/rails-requires-rubygems-1-3-1-you-have-1-1-1-on-osx/163483)

<div class="topic-metadata">

**Author:** [@andreinla](https://www.ruby-forum.com/u/andreinla)\
**Replies:** 5\
**Last updated:** [March 21, 2009, 3:50am UTC](https://www.ruby-forum.com/t/rails-requires-rubygems-1-3-1-you-have-1-1-1-on-osx/163483 "2009-03-21T03:50:59Z")

</div>

Hi, I just installed rails 2.3.2 and after rails test cd test rake db:migrate mongrel\_rails start I get this: \*\* Starting Mongrel listening at 0.0.0.0:3000 \*\* Starting Rails with development environment… Rails re…

---

## [Connecting to multiple databases in rails](https://www.ruby-forum.com/t/connecting-to-multiple-databases-in-rails/145726)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 5\
**Last updated:** [August 13, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/connecting-to-multiple-databases-in-rails/145726 "2008-08-13T19:28:49Z")

</div>

Hi When strting my application I have three text boxes Username, password and company name A user on providing all these goes to user controller login\_process action…That means in my application database.yml have n…

---

## [Problem with creating a database scheme/model](https://www.ruby-forum.com/t/problem-with-creating-a-database-scheme-model/126864)

<div class="topic-metadata">

**Author:** [@Chris-Aix](https://www.ruby-forum.com/u/Chris-Aix)\
**Replies:** 5\
**Last updated:** [January 23, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/problem-with-creating-a-database-scheme-model/126864 "2008-01-23T16:35:59Z")

</div>

Hi there, I have a problem with creating a database scheme and the according models. To describe the situation I made small scribble, because I think that explains it best. http://herrbuerger.com/scheme.001.jpg So …

---

## [Test-all test suite fails upon Ruby 1.8.5 compilation](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 5\
**Last updated:** [August 3, 2007, 3:21am UTC](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964 "2007-08-03T03:21:41Z")

</div>

Hi! I’m using this: http://www.rubywizards.com/viewtopic.php?pid=19 To compile Ruby 1.8.5 for Ubuntu 6.06 (since apt-get installs 1.8.4 and 1.8.6 has some threading problems). I follow the steps in tutorial exactly …

---

## [Problem with id's](https://www.ruby-forum.com/t/problem-with-ids/229126)

<div class="topic-metadata">

**Author:** [@dilip](https://www.ruby-forum.com/u/dilip)\
**Replies:** 5\
**Last updated:** [December 18, 2006, 3:07am UTC](https://www.ruby-forum.com/t/problem-with-ids/229126 "2006-12-18T03:07:53Z")

</div>

hi friends, I am new to ruby and i need a help from any one of u. I have got four tables and all i have to get the thing is i need to take the Id from one table and pass it in to the another table. Similarly …

---

## [Random mysql error](https://www.ruby-forum.com/t/random-mysql-error/74993)

<div class="topic-metadata">

**Author:** [@chadster](https://www.ruby-forum.com/u/chadster)\
**Replies:** 5\
**Last updated:** [November 28, 2006, 8:04pm UTC](https://www.ruby-forum.com/t/random-mysql-error/74993 "2006-11-28T20:04:12Z")

</div>

Does anyone get the following error at random? Mysql::Error: Lost connection to MySQL server during query: It only happens on my development machine which, unfortunately, is a windows box. It happens like every 10 …

---

## [Can 2 actions use a single view?](https://www.ruby-forum.com/t/can-2-actions-use-a-single-view/76504)

<div class="topic-metadata">

**Author:** [@holly](https://www.ruby-forum.com/u/holly)\
**Replies:** 5\
**Last updated:** [November 20, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/can-2-actions-use-a-single-view/76504 "2006-11-20T14:45:38Z")

</div>

I have 2 different actions, when they are complete, can they both be sent to the same view?

---

## [ActiveRecord migrations in a single transaction?](https://www.ruby-forum.com/t/activerecord-migrations-in-a-single-transaction/73345)

<div class="topic-metadata">

**Author:** [@stubbsuk](https://www.ruby-forum.com/u/stubbsuk)\
**Replies:** 5\
**Last updated:** [November 8, 2006, 12:48am UTC](https://www.ruby-forum.com/t/activerecord-migrations-in-a-single-transaction/73345 "2006-11-08T00:48:54Z")

</div>

Is it possible to make Migrations occur in a single transaction, so that if the rake fails, it doesn’t leave the database in a broken state, with half the changes made, and the other half incomplete? Obviously, this d…

---

## [Foreign Keys Put in DB Automatically, no?](https://www.ruby-forum.com/t/foreign-keys-put-in-db-automatically-no/69291)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 5\
**Last updated:** [September 20, 2006, 1:53am UTC](https://www.ruby-forum.com/t/foreign-keys-put-in-db-automatically-no/69291 "2006-09-20T01:53:29Z")

</div>

I have the following relationships: class User \< ActiveRecord::Base has\_many :pictures end class Picture \< ActiveRecord::Base belongs\_to :user end And now I hace the following code: @user = User.find params\[:id\] …

---

## [Comments:count on main page, possible?](https://www.ruby-forum.com/t/comments-count-on-main-page-possible/69021)

<div class="topic-metadata">

**Author:** [@jonbaer](https://www.ruby-forum.com/u/jonbaer)\
**Replies:** 5\
**Last updated:** [September 19, 2006, 2:42pm UTC](https://www.ruby-forum.com/t/comments-count-on-main-page-possible/69021 "2006-09-19T14:42:46Z")

</div>

Hi, Im just wondering if its possible @ all to use \<r:comments:count /\> on the main page … i figured that setting it as commentable and using (\<r:comments:count /\> comments) in my layout might work but no luck … any …

---

## [LiteSpeed Web Server 2.2 with Ruby Rails integration](https://www.ruby-forum.com/t/litespeed-web-server-2-2-with-ruby-rails-integration/66534)

<div class="topic-metadata">

**Author:** [@xing](https://www.ruby-forum.com/u/xing)\
**Replies:** 5\
**Last updated:** [September 5, 2006, 5:55pm UTC](https://www.ruby-forum.com/t/litespeed-web-server-2-2-with-ruby-rails-integration/66534 "2006-09-05T17:55:52Z")

</div>

Fellow Rail users and developers, Right now the easiest way to run Rails is in combination with Mongrel. However, it may not be a good idea to expose Mongrel directly to the outside world in a high-load production env…

---

## [Habtm on an array](https://www.ruby-forum.com/t/habtm-on-an-array/62091)

<div class="topic-metadata">

**Author:** [@daniel](https://www.ruby-forum.com/u/daniel)\
**Replies:** 5\
**Last updated:** [May 31, 2006, 3:35pm UTC](https://www.ruby-forum.com/t/habtm-on-an-array/62091 "2006-05-31T15:35:12Z")

</div>

Hi, I have three Models User, Group and File. User habtm group Group habtm File How can I find all that files that a particular user has access to? eg user.groups.files ?

---

## [Toolbox](https://www.ruby-forum.com/t/toolbox/94079)

<div class="topic-metadata">

**Author:** [@Rafael\_Z](https://www.ruby-forum.com/u/Rafael_Z)\
**Replies:** 5\
**Last updated:** [April 20, 2006, 5:26am UTC](https://www.ruby-forum.com/t/toolbox/94079 "2006-04-20T05:26:51Z")

</div>

Hello my friends Today at FISL (International Forum of Free Software), I’ve had the opportunity to watch a Turbogears presentation. The framework, itself is really weak in comparison to rails, but… When the guy who …

---

## [Can not install mysql for ruby](https://www.ruby-forum.com/t/can-not-install-mysql-for-ruby/57606)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 5\
**Last updated:** [April 12, 2006, 9:21pm UTC](https://www.ruby-forum.com/t/can-not-install-mysql-for-ruby/57606 "2006-04-12T21:21:36Z")

</div>

Hello, I hope this is not too off-topic, but after 2 days of googling and trying everything possible that crossed my mind i have no idea what to do/how to go on. I have double checked 10k times that i have every pack…

---

## [Password fields and security?](https://www.ruby-forum.com/t/password-fields-and-security/96572)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 5\
**Last updated:** [January 24, 2006, 5:40pm UTC](https://www.ruby-forum.com/t/password-fields-and-security/96572 "2006-01-24T17:40:37Z")

</div>

Hi all I wanted to ask why Rails’ password\_field helper uses the input password as default value when reloading a form because of errors? Isn’t this a potential security leak? On any other webs I’ve seen so far the pa…

---

## [Extend an object using string as module name?](https://www.ruby-forum.com/t/extend-an-object-using-string-as-module-name/64437)

<div class="topic-metadata">

**Author:** [@akonsu](https://www.ruby-forum.com/u/akonsu)\
**Replies:** 5\
**Last updated:** [December 9, 2005, 4:16pm UTC](https://www.ruby-forum.com/t/extend-an-object-using-string-as-module-name/64437 "2005-12-09T16:16:43Z")

</div>

hello, is this a proper way to do it: name = ‘MyModule’ o = Object.new o.extend(Module.const\_get(name)) are there better ways? thanks konstantin

---

## [SSL handshake issue!](https://www.ruby-forum.com/t/ssl-handshake-issue/243555)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 2:27pm UTC](https://www.ruby-forum.com/t/ssl-handshake-issue/243555 "2015-12-03T14:27:39Z")

</div>

Hi, We’ve been encountering this issue quiet frequently. Looks like that is the reason of our drop in traffic as well. 2015/12/03 16:19:18 \[crit\] 26272#0: \*176263213 SSL\_do\_handshake() failed (SSL: error:140A1175:S…

---

## [Gestione dell' as\_json](https://www.ruby-forum.com/t/gestione-dell-as-json/232771)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 29, 2014, 12:04am UTC](https://www.ruby-forum.com/t/gestione-dell-as-json/232771 "2014-10-29T00:04:41Z")

</div>

Ciao a tutti innanzitutto grazie per il vostro aiuto, mi sto realizzando un applicativo nel mio controller ho questo codice: posts = Post.all render status: 200, :json =\> { :success =\> …

---

## [Help sendmsg() failed in error log](https://www.ruby-forum.com/t/help-sendmsg-failed-in-error-log/240641)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 24, 2014, 10:36am UTC](https://www.ruby-forum.com/t/help-sendmsg-failed-in-error-log/240641 "2014-04-24T10:36:12Z")

</div>

hello when test my reverse proxy server, I found "sendmsg() failed (9: Bad file descriptor) while reading response header from upstream" in error.log. Is there any clue about it? Confidentiality Notice: The infor…

---

## [Trying to configure an origin pull CDN-like reverse proxy](https://www.ruby-forum.com/t/trying-to-configure-an-origin-pull-cdn-like-reverse-proxy/224208)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 3, 2012, 10:44am UTC](https://www.ruby-forum.com/t/trying-to-configure-an-origin-pull-cdn-like-reverse-proxy/224208 "2012-11-03T10:44:50Z")

</div>

Hello, I’m hosting a group of Wordpress blogs with about 200k visits and millions of hits per day. MySql + PHP live in a server (beefy VPS) and I placed a reverse proxy in front of it to cache most of the requests. No…

---

## [Ruby update](https://www.ruby-forum.com/t/ruby-update/216075)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [January 25, 2012, 8:06pm UTC](https://www.ruby-forum.com/t/ruby-update/216075 "2012-01-25T20:06:08Z")

</div>

Hello, I’m using instantrails 2 to develop RubyOnRails projects on windows and need to update my ruby version to 1.8.7 (I’m still using 1.8.6). I downloaded ruby 1.8.7 here http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1…

---

## [Subtype polymorphism](https://www.ruby-forum.com/t/subtype-polymorphism/212086)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 21, 2011, 9:49pm UTC](https://www.ruby-forum.com/t/subtype-polymorphism/212086 "2011-09-21T21:49:12Z")

</div>

hello everyone, can somebody give me an example of a subtype polymorphism in ruby with a code as the example… thanks

---

## [Problems with mediawiki behind nginx / apache (redirects to wrong url)](https://www.ruby-forum.com/t/problems-with-mediawiki-behind-nginx-apache-redirects-to-wrong-url/211710)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 11, 2011, 8:46pm UTC](https://www.ruby-forum.com/t/problems-with-mediawiki-behind-nginx-apache-redirects-to-wrong-url/211710 "2011-09-11T20:46:07Z")

</div>

Hi, I’m having a little trouble to get Mediawiki working in my nginx setup. The problem is very probably the configuration of Mediawiki, but the Help pages about Mediawiki don’t mention nginx. So I thought I ask here…

---

## [Become\_java! does behave differently between jruby-1.5.x and jruby-1.6.0.RCX](https://www.ruby-forum.com/t/become-java-does-behave-differently-between-jruby-1-5-x-and-jruby-1-6-0-rcx/204177)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 8, 2011, 4:40am UTC](https://www.ruby-forum.com/t/become-java-does-behave-differently-between-jruby-1-5-x-and-jruby-1-6-0-rcx/204177 "2011-03-08T04:40:03Z")

</div>

the following snippet works nice in jruby-1.5.6 and this allows to use such classes in libraries (hibernate) which load the classes from the context\_classloader. with 1.6.0 the classname changed from ruby.A to rubyobj…

---

## [Does anyone test errors in their specs?](https://www.ruby-forum.com/t/does-anyone-test-errors-in-their-specs/198830)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 7\
**Last updated:** [November 9, 2010, 7:07am UTC](https://www.ruby-forum.com/t/does-anyone-test-errors-in-their-specs/198830 "2010-11-09T07:07:20Z")

</div>

For example: it ‘should not validate if nil’ do @account.name = nil @account.should\_not be\_valid @account.errors\[:name\]\[0\].should eq ‘can’t be blank’ end Is this good practice?

---

## [Broken link check for Authenticated Url using http,uri](https://www.ruby-forum.com/t/broken-link-check-for-authenticated-url-using-http-uri/196012)

<div class="topic-metadata">

**Author:** [@pshah](https://www.ruby-forum.com/u/pshah)\
**Replies:** 1\
**Last updated:** [October 7, 2010, 9:44am UTC](https://www.ruby-forum.com/t/broken-link-check-for-authenticated-url-using-http-uri/196012 "2010-10-07T09:44:10Z")

</div>

Hi All, I work on check all links in a site, so for that i fetch all links from page and check its http response and its work fine for urls which have not any authentication. but my many urls need to pass username an…

---

## [Does Ruby have standard container like C++?](https://www.ruby-forum.com/t/does-ruby-have-standard-container-like-c/193257)

<div class="topic-metadata">

**Author:** [@cnguyen](https://www.ruby-forum.com/u/cnguyen)\
**Replies:** 1\
**Last updated:** [August 14, 2010, 9:05am UTC](https://www.ruby-forum.com/t/does-ruby-have-standard-container-like-c/193257 "2010-08-14T09:05:00Z")

</div>

Hi everyone, I’m a newbie to Ruby. I’ve just started learning Ruby for a week, but I love it :slight\_smile: so much. I wonder is there any website to look up standard library like C++? And does Ruby have some standar…

---

## [Formulaire et enregistrement des donnÃ©es au format YAML](https://www.ruby-forum.com/t/formulaire-et-enregistrement-des-donna-es-au-format-yaml/185285)

<div class="topic-metadata">

**Author:** [@akyrho](https://www.ruby-forum.com/u/akyrho)\
**Replies:** 1\
**Last updated:** [March 17, 2010, 2:29pm UTC](https://www.ruby-forum.com/t/formulaire-et-enregistrement-des-donna-es-au-format-yaml/185285 "2010-03-17T14:29:09Z")

</div>

Bonjour à tous, Pour l’application que je développe, je tente d’utiliser un fichier YAML pour stocker les variables de configuration. De l’autre coté, j’ai un formulaire qui permet d’éditer ce fichier pour plus de fa…

---

## [RE: datetime\_select causing 1 error(s) on assignment of multiparameter attributes](https://www.ruby-forum.com/t/re-datetime-select-causing-1-error-s-on-assignment-of-multiparameter-attributes/169398)

<div class="topic-metadata">

**Author:** [@Gregg\_Turnbull](https://www.ruby-forum.com/u/Gregg_Turnbull)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/re-datetime-select-causing-1-error-s-on-assignment-of-multiparameter-attributes/169398 "2009-06-03T16:58:15Z")

</div>

I have recently updated to rails gem: 2.2.2 and am getting an error when datetime\_select or a plugin using datetime\_select (unobtrusive\_datetime\_picker - GitHub - brianjlandau/unobtrusive\_date\_picker: NO LONGER MAINTA…

---

## [I met a trouble: cannot do a form post to an outside website](https://www.ruby-forum.com/t/i-met-a-trouble-cannot-do-a-form-post-to-an-outside-website/154733)

<div class="topic-metadata">

**Author:** [@rubbit](https://www.ruby-forum.com/u/rubbit)\
**Replies:** 1\
**Last updated:** [December 5, 2008, 8:57am UTC](https://www.ruby-forum.com/t/i-met-a-trouble-cannot-do-a-form-post-to-an-outside-website/154733 "2008-12-05T08:57:35Z")

</div>

now i use webrat for cucumber scenario testing. i have a page with a form, which will post to a bank payment gateway. that is, ... my scenario step script is: == And I press “confirm” then I got such an err…

---

## [Select\_all method missing in HtmlWindow](https://www.ruby-forum.com/t/select-all-method-missing-in-htmlwindow/148000)

<div class="topic-metadata">

**Author:** [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Replies:** 1\
**Last updated:** [September 8, 2008, 9:30am UTC](https://www.ruby-forum.com/t/select-all-method-missing-in-htmlwindow/148000 "2008-09-08T09:30:51Z")

</div>

Hi, Thanks for great work getting 1.9.8 release out. I got the following errors for HtmlWindow undefined method ‘select\_all’ for #Wx::HtmlWindow:0x9e98c08 undefined method ‘selection\_to\_text’ for #Wx::HtmlWindow:0x9e…

---

## [Webrick HTTP Errors?](https://www.ruby-forum.com/t/webrick-http-errors/137682)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 11:22am UTC](https://www.ruby-forum.com/t/webrick-http-errors/137682 "2008-05-15T11:22:52Z")

</div>

Hey How do i set the HTTP Error Code Header when using webrick. I found the response.set\_error function. What do i need to pass there to e.g. set a http 404 error? thx

---

## [Caching database data that doesn't change](https://www.ruby-forum.com/t/caching-database-data-that-doesnt-change/129318)

<div class="topic-metadata">

**Author:** [@xavi](https://www.ruby-forum.com/u/xavi)\
**Replies:** 7\
**Last updated:** [February 19, 2008, 11:19am UTC](https://www.ruby-forum.com/t/caching-database-data-that-doesnt-change/129318 "2008-02-19T11:19:18Z")

</div>

what is the best way to cache database data that doesn’t change? I was caching it in a constant that I set in a file in config/initializers/ . More concretely, I have a file config/initializers/db\_cache\_constants.rb t…

---

## [Curious include behavior](https://www.ruby-forum.com/t/curious-include-behavior/115823)

<div class="topic-metadata">

**Author:** [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Replies:** 7\
**Last updated:** [September 30, 2007, 5:10am UTC](https://www.ruby-forum.com/t/curious-include-behavior/115823 "2007-09-30T05:10:18Z")

</div>

This caused me a small headache the other day. By including a module, an instance method suddenly becomes accessible as a module method. Seems unintuitive, I’m curious to understand the reasoning behind it. module Foo …

---

## [Consejo para una de roles y permisos](https://www.ruby-forum.com/t/consejo-para-una-de-roles-y-permisos/106662)

<div class="topic-metadata">

**Author:** [@alarkspur](https://www.ruby-forum.com/u/alarkspur)\
**Replies:** 1\
**Last updated:** [June 13, 2007, 1:34am UTC](https://www.ruby-forum.com/t/consejo-para-una-de-roles-y-permisos/106662 "2007-06-13T01:34:53Z")

</div>

Hola, había implementado un sistema de usuarios, roles y permisos pero cuando lo he visto al cabo de unos días no me gusta nada, lo veo poco DRY :frowning: les comento un poco por encima el código a ver que les parece…

---

## [Passing optional argument to win32 ole subsystem](https://www.ruby-forum.com/t/passing-optional-argument-to-win32-ole-subsystem/86418)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 1\
**Last updated:** [February 22, 2007, 11:43am UTC](https://www.ruby-forum.com/t/passing-optional-argument-to-win32-ole-subsystem/86418 "2007-02-22T11:43:12Z")

</div>

Hi all, I am trying to embed a html document in Excel document using Win32OLE. The VBA Excel reference talks about this by using the OleObject Add method. However I am not sure how do I pass the optional argument in …

---

## [Pdf writer font not found](https://www.ruby-forum.com/t/pdf-writer-font-not-found/84327)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 3, 2007, 6:56am UTC](https://www.ruby-forum.com/t/pdf-writer-font-not-found/84327 "2007-02-03T06:56:01Z")

</div>

I cannot figure out how to get a font loaded. I have in c:\\windows/ fonts a font file named w128m.ttf. It displays as “WASP 128 M(TrueType)”. I haven’t been able to code the select\_font method to load the font. PD…

---

## [Globalize\_languages doesn't exist error](https://www.ruby-forum.com/t/globalize-languages-doesnt-exist-error/81148)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 1\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/globalize-languages-doesnt-exist-error/81148 "2007-01-06T19:30:27Z")

</div>

Hi, I am getting started with globalize and so far it works ok. At some point I had to do ‘rake globalize:teardown’ to reset the database (I had the problem where all user translations were stored as ‘built\_in’ as de…

---

## [Trying to Overide Class Object Methdos For Testing](https://www.ruby-forum.com/t/trying-to-overide-class-object-methdos-for-testing/65045)

<div class="topic-metadata">

**Author:** [@rooster](https://www.ruby-forum.com/u/rooster)\
**Replies:** 7\
**Last updated:** [August 16, 2006, 12:34am UTC](https://www.ruby-forum.com/t/trying-to-overide-class-object-methdos-for-testing/65045 "2006-08-16T00:34:03Z")

</div>

Hi, I thought I had a handle on the whole singleton class thing but now I’m not too sure. I have a class definition: class ValidationMaster def validate(params) # complex and time consuming validation # returns tr…

---

## [String#downcase for accented letters in UTF-8?](https://www.ruby-forum.com/t/string-downcase-for-accented-letters-in-utf-8/57884)

<div class="topic-metadata">

**Author:** [@gioele](https://www.ruby-forum.com/u/gioele)\
**Replies:** 1\
**Last updated:** [April 15, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/string-downcase-for-accented-letters-in-utf-8/57884 "2006-04-15T17:10:19Z")

</div>

How can I convert to lowercase a string that contains accented characters encoded in UTF-8? String#downcase does not work with accented letters.

---

## [Error installing gem pg on Mac with Postgress.app](https://www.ruby-forum.com/t/error-installing-gem-pg-on-mac-with-postgress-app/253498)

<div class="topic-metadata">

**Author:** [@Forbin](https://www.ruby-forum.com/u/Forbin)\
**Replies:** 0\
**Last updated:** [December 18, 2019, 4:20am UTC](https://www.ruby-forum.com/t/error-installing-gem-pg-on-mac-with-postgress-app/253498 "2019-12-18T04:20:17Z")

</div>

The pg gem will not install. Getting: ERROR: Error installing pg: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.3.0/gems/pg-1.1.4/ext /System/Library/Frameworks/Ruby.fram…

---

## [Server problem](https://www.ruby-forum.com/t/server-problem/150989)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 0\
**Last updated:** [October 15, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/server-problem/150989 "2008-10-15T16:49:29Z")

</div>

hi in my application i have set a new environment like development i have added all configuration for it. also i able to start server for this new environment form command prompt ruby script/server -e my env name bu…

---

## [Getting ServerIP Dynamically](https://www.ruby-forum.com/t/getting-serverip-dynamically/138344)

<div class="topic-metadata">

**Author:** [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Replies:** 8\
**Last updated:** [May 23, 2008, 10:32am UTC](https://www.ruby-forum.com/t/getting-serverip-dynamically/138344 "2008-05-23T10:32:36Z")

</div>

How to get the server Ip address dynamically.

---

## [Duplicate Data But Have The Primary Keys Change With A Click](https://www.ruby-forum.com/t/duplicate-data-but-have-the-primary-keys-change-with-a-click/121062)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 8\
**Last updated:** [November 23, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/duplicate-data-but-have-the-primary-keys-change-with-a-click/121062 "2007-11-23T17:54:47Z")

</div>

I basically want to know whether there is such function on ruby on rails that allows me to duplicate a record but have the primary keys changed. For example, duplicate 20 records of Micheal Jackson’s address and detai…

[Previous page](https://www.ruby-forum.com/top.md?page=1361&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=1363&per_page=50)
