# Top

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

[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:** 863

---

## [Verifying SSL with http-access2 on Windows](https://www.ruby-forum.com/t/verifying-ssl-with-http-access2-on-windows/87796)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 4\
**Last updated:** [March 28, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/verifying-ssl-with-http-access2-on-windows/87796 "2006-03-28T20:41:55Z")

</div>

Anyone know how to get http-access2 to verify the SSL Certificate on Windows? I can get it to not verify, but I can’t seem to get it to use local certs to verify… I guess I need to install them somewhere and set some…

---

## [(BUG in svn/trunk?) - superclass mismatch for any subclass o](https://www.ruby-forum.com/t/bug-in-svn-trunk-superclass-mismatch-for-any-subclass-o/100591)

<div class="topic-metadata">

**Author:** [@taintedsushi](https://www.ruby-forum.com/u/taintedsushi)\
**Replies:** 4\
**Last updated:** [February 4, 2006, 6:21pm UTC](https://www.ruby-forum.com/t/bug-in-svn-trunk-superclass-mismatch-for-any-subclass-o/100591 "2006-02-04T18:21:00Z")

</div>

I track svn/trunk of Rails using svn:externals Some change to Rails committed in the last 1-2 days broke my subclass of ApplicationController The example, below, works with Rails 1.0, but in today’s svn, it dies with…

---

## [How to change a master clock rate on USRP B210](https://www.ruby-forum.com/t/how-to-change-a-master-clock-rate-on-usrp-b210/229956)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [May 24, 2014, 9:26am UTC](https://www.ruby-forum.com/t/how-to-change-a-master-clock-rate-on-usrp-b210/229956 "2014-05-24T09:26:27Z")

</div>

Hello All Gnu Radio user, To use a 2 TX, I want to change a clock rate to an accepted one, under 30.72 MHz. I use the API with uhd\_usrp\_probe and it works only for this command. Can you give me the idea or python code…

---

## [Relational DB - Related and not Related](https://www.ruby-forum.com/t/relational-db-related-and-not-related/235474)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 7\
**Last updated:** [June 26, 2013, 3:57am UTC](https://www.ruby-forum.com/t/relational-db-related-and-not-related/235474 "2013-06-26T03:57:10Z")

</div>

Hi I’m working on a project that has users and groups, users can be members of a group or they can just be a user - what’s going to be the best way to deal with this? I understand the normal has\_many relationship j…

---

## [Remove URI string?](https://www.ruby-forum.com/t/remove-uri-string/229354)

<div class="topic-metadata">

**Author:** [@daveyfx](https://www.ruby-forum.com/u/daveyfx)\
**Replies:** 7\
**Last updated:** [January 11, 2013, 12:26am UTC](https://www.ruby-forum.com/t/remove-uri-string/229354 "2013-01-11T00:26:08Z")

</div>

Hello all - I would like to strip all request\_uri strings for a group of server names and serve up an index page. Example: Client requests http://host1.domain.com/blah, nginx will direct client to http://host1.dom…

---

## [Thin server giving Stack level too deep error](https://www.ruby-forum.com/t/thin-server-giving-stack-level-too-deep-error/226535)

<div class="topic-metadata">

**Author:** [@Sumit\_S](https://www.ruby-forum.com/u/Sumit_S)\
**Replies:** 7\
**Last updated:** [December 13, 2012, 7:54am UTC](https://www.ruby-forum.com/t/thin-server-giving-stack-level-too-deep-error/226535 "2012-12-13T07:54:04Z")

</div>

Hi, I am using thin web server in my rails project. But it gives stack level too deep error. Couldn’t find any appropriate solution to this. I have tried updating the ruby but didn’t help. Regards, Sumit

---

## [How to ensure that a block runs entirely after other threads? (Thread.exclusive does not "work")](https://www.ruby-forum.com/t/how-to-ensure-that-a-block-runs-entirely-after-other-threads-thread-exclusive-does-not-work/219762)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [May 16, 2012, 9:51am UTC](https://www.ruby-forum.com/t/how-to-ensure-that-a-block-runs-entirely-after-other-threads-thread-exclusive-does-not-work/219762 "2012-05-16T09:51:29Z")

</div>

Hi, I expected that in the following example code, thread t1 would not work until the Thread.exclusive blocks ends, but I am wrong: t1 = Thread.new { loop do printf “.” ; sleep 0.1 end } Thread.exclusive do puts “en…

---

## [Error installing json](https://www.ruby-forum.com/t/error-installing-json/217965)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [March 17, 2012, 5:05pm UTC](https://www.ruby-forum.com/t/error-installing-json/217965 "2012-03-17T17:05:13Z")

</div>

hi I have installed ruby 1.9.3p125 (2012-02-16) \[i386-mingw32\] rails 3.2.2 windows 7 I have tried to create a rails project by using the command from command line rails new firstapp the following is the output… U…

---

## [Http://github.com/mongrel/mongrel has outdated code /fauna/mongrel is more current](https://www.ruby-forum.com/t/http-github-com-mongrel-mongrel-has-outdated-code-fauna-mongrel-is-more-current/192964)

<div class="topic-metadata">

**Author:** [@luckydeepak](https://www.ruby-forum.com/u/luckydeepak)\
**Replies:** 1\
**Last updated:** [August 9, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/http-github-com-mongrel-mongrel-has-outdated-code-fauna-mongrel-is-more-current/192964 "2010-08-09T20:08:59Z")

</div>

hi, The link for homepage on: mongrel | RubyGems.org | your community gem host redirects to http://github.com/fauna/mongrel but we still have a GitHub - mongrel/mongrel: Mongrel on git which has outdated code and has…

---

## [Help with a regular expressions and gsub](https://www.ruby-forum.com/t/help-with-a-regular-expressions-and-gsub/196943)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 7\
**Last updated:** [April 20, 2009, 10:38am UTC](https://www.ruby-forum.com/t/help-with-a-regular-expressions-and-gsub/196943 "2009-04-20T10:38:11Z")

</div>

I need to use gsub in a large text. For example, I will like to search for ‘car’ in this text. “Lorem ipum car. Locar ipsum, car lorem ipusum .Lorem car ipsum” I will like to put ‘bike’ instead of ‘car’. Exactly I need…

---

## [Subclassing vs mixins, which one should be used?](https://www.ruby-forum.com/t/subclassing-vs-mixins-which-one-should-be-used/155270)

<div class="topic-metadata">

**Author:** [@bushymark](https://www.ruby-forum.com/u/bushymark)\
**Replies:** 7\
**Last updated:** [December 10, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/subclassing-vs-mixins-which-one-should-be-used/155270 "2008-12-10T19:10:51Z")

</div>

Hey all, I have two models in my rails project that share a lot of traits. They each have the same 4 properties, and now I need to add 2-3 methods to each one that will be the same. In the spirit of DRY I am looking f…

---

## ['gem list --remote' is blank?](https://www.ruby-forum.com/t/gem-list-remote-is-blank/147738)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 7\
**Last updated:** [September 4, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/gem-list-remote-is-blank/147738 "2008-09-04T23:25:00Z")

</div>

When running ‘gem list --remote’ on our linux and mac machines, we get a huge list of available gems, but when doing the same on a windows laptop in the office, we just get… \*\*\* REMOTE GEMS \*\*\* Bulk updating Gem sour…

---

## [RubyWeekend Game Contest, June 13-15](https://www.ruby-forum.com/t/rubyweekend-game-contest-june-13-15/140042)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 7\
**Last updated:** [June 12, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/rubyweekend-game-contest-june-13-15/140042 "2008-06-12T13:14:40Z")

</div>

A bit of short notice, but we’ve having a small game creation contest starting this Friday, June 13 at 20:00 GMT. The contest is called RubyWeekend, as a cheap knock-off of Pygame’s “PyWeek” (just like Rubygame is a c…

---

## ["&prock", not "&block"](https://www.ruby-forum.com/t/prock-not-block/120237)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 7\
**Last updated:** [November 16, 2007, 11:01am UTC](https://www.ruby-forum.com/t/prock-not-block/120237 "2007-11-16T11:01:41Z")

</div>

In all of the code below, “prock” by itself is always a proc, while the combination “&prock” is always a block: def my\_proc &prock # accepts a block prock # returns a proc end prock = my\_proc { p "H…

---

## [Freelance Rails Developer Wanted](https://www.ruby-forum.com/t/freelance-rails-developer-wanted/91109)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [April 5, 2007, 2:56am UTC](https://www.ruby-forum.com/t/freelance-rails-developer-wanted/91109 "2007-04-05T02:56:32Z")

</div>

Hello, I hope it’s ok to be posting this here. I’m looking for an experienced Rails developer to take on a fairly simple project and possibly many others in the future. I have the entire project written down and I’m …

---

## [Is HABTM Dying?](https://www.ruby-forum.com/t/is-habtm-dying/62459)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 7\
**Last updated:** [June 5, 2006, 2:34pm UTC](https://www.ruby-forum.com/t/is-habtm-dying/62459 "2006-06-05T14:34:13Z")

</div>

For a while, I’ve been getting that HMT is replacing HABTM. It appears that HMT can do all of what HABTM can do and more. The question is: Should I stop using HABTM? Let’s take a simple case: A case has many categor…

---

## [How to call a java function in rubyonrails method](https://www.ruby-forum.com/t/how-to-call-a-java-function-in-rubyonrails-method/57824)

<div class="topic-metadata">

**Author:** [@matteo](https://www.ruby-forum.com/u/matteo)\
**Replies:** 7\
**Last updated:** [April 15, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/how-to-call-a-java-function-in-rubyonrails-method/57824 "2006-04-15T20:15:02Z")

</div>

Hi everyone, I’m Italian and sorry for my english mistakes… I’m developing a web-site using rubyonrails. It’s REALLY COOL! But I’m obliged to re-use some javascript functions. Do you know where I can get the right d…

---

## [How to use a variable in several controllers?](https://www.ruby-forum.com/t/how-to-use-a-variable-in-several-controllers/231776)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [September 5, 2014, 4:16pm UTC](https://www.ruby-forum.com/t/how-to-use-a-variable-in-several-controllers/231776 "2014-09-05T16:16:55Z")

</div>

Dear all, I am a new “Ruby/Ruby on Rails” programmer. I am not sure this is the correct forum for my question. If this is not the correct forum, please indicate me a more appropriate one. When my application implemen…

---

## [Declaring list of string constnats for app](https://www.ruby-forum.com/t/declaring-list-of-string-constnats-for-app/220008)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [May 29, 2012, 1:38pm UTC](https://www.ruby-forum.com/t/declaring-list-of-string-constnats-for-app/220008 "2012-05-29T13:38:40Z")

</div>

Hi All, I’m building an app that compares statistics from sports games. Each statistic has an “action” that defines what happened at that point in time, for example “player has possession” is one such action string. I…

---

## [Nginx-1.0.3](https://www.ruby-forum.com/t/nginx-1-0-3/207423)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [March 1, 2012, 1:37pm UTC](https://www.ruby-forum.com/t/nginx-1-0-3/207423 "2012-03-01T13:37:47Z")

</div>

Changes with nginx 1.0.3 25 May 2011 \*) Feature: the "auth\_basic\_user\_file" directive supports "$apr1", "{PLAIN}", and "{SSHA}" password encryption methods. Thanks to Maxim…

---

## [REWORK - Task: Unify behaviour of by-literal-instantiated Objects](https://www.ruby-forum.com/t/rework-task-unify-behaviour-of-by-literal-instantiated-objects/208540)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [June 25, 2011, 9:29am UTC](https://www.ruby-forum.com/t/rework-task-unify-behaviour-of-by-literal-instantiated-objects/208540 "2011-06-25T09:29:21Z")

</div>

(Note: This task is part of the RUBY REWORK, which has (among other goals) the goal to remove inconsistencies and limitations in the Object Model and in the language. The time frame for the overall rework is 3 months.…

---

## [Nested route with collection](https://www.ruby-forum.com/t/nested-route-with-collection/205687)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [April 13, 2011, 3:45pm UTC](https://www.ruby-forum.com/t/nested-route-with-collection/205687 "2011-04-13T15:45:23Z")

</div>

Hi! I try to do nested route with collection, but I always have mistake route: resources :user do resources :todo do member do post :complete end collection do get :completed end resources :post end end Vie…

---

## [Deployment issues](https://www.ruby-forum.com/t/deployment-issues/201445)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [January 7, 2011, 6:14pm UTC](https://www.ruby-forum.com/t/deployment-issues/201445 "2011-01-07T18:14:01Z")

</div>

Hello, For those of you who have solved the learning hurdle of rails deployment, all I can say is congratulations! I’m struggling, frustrated that my app, which runs so well on my linux box, generates such odd error…

---

## [PHP string + value to RoR](https://www.ruby-forum.com/t/php-string-value-to-ror/159396)

<div class="topic-metadata">

**Author:** [@johnroyworld](https://www.ruby-forum.com/u/johnroyworld)\
**Replies:** 5\
**Last updated:** [February 4, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/php-string-value-to-ror/159396 "2009-02-04T17:38:54Z")

</div>

hello I’m new to RoR and i have concern regarding on how to output a string with a value that parse on it. Example in php: $value = 1; $string = ‘the value is ‘.$value.’.’; and it gives you the output which is: “the…

---

## [Q: Documentation for PGconn](https://www.ruby-forum.com/t/q-documentation-for-pgconn/144506)

<div class="topic-metadata">

**Author:** [@GSRalph\_KuntzS\_MD](https://www.ruby-forum.com/u/GSRalph_KuntzS_MD)\
**Replies:** 5\
**Last updated:** [July 31, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/q-documentation-for-pgconn/144506 "2008-07-31T15:42:16Z")

</div>

Is there any documentation for PGconn (or postgres/postgres)? When I do ‘ri postgres’ I get the message ‘Nothing known about postgres’, even though the module works fine in test cases with jruby and cygwin- ruby in Wi…

---

## [Problem with JRuby, JTestr, and Hadoop](https://www.ruby-forum.com/t/problem-with-jruby-jtestr-and-hadoop/137729)

<div class="topic-metadata">

**Author:** [@bdeverea](https://www.ruby-forum.com/u/bdeverea)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 10:10pm UTC](https://www.ruby-forum.com/t/problem-with-jruby-jtestr-and-hadoop/137729 "2008-05-15T22:10:16Z")

</div>

I’m writing an application in Java that uses Hadoop and is tested with JTestr. Hadoop uses some classpath magic to find config files it needs. I can verify that my classpath is correct, because if I make a minimal JUn…

---

## [Using render in observe\_field before](https://www.ruby-forum.com/t/using-render-in-observe-field-before/134400)

<div class="topic-metadata">

**Author:** [@rays](https://www.ruby-forum.com/u/rays)\
**Replies:** 5\
**Last updated:** [April 19, 2008, 6:23am UTC](https://www.ruby-forum.com/t/using-render-in-observe-field-before/134400 "2008-04-19T06:23:22Z")

</div>

I want to use render(:partial =\> “loading”) in observe\_field’s before. For example: Can not run \<%= observe\_field ‘username’, :on =\> ‘blur’, :update =\> ‘check\_username’, :url =\> {:action =\> ‘check\_username’}, :befo…

---

## [Turning off disk buffering?](https://www.ruby-forum.com/t/turning-off-disk-buffering/117609)

<div class="topic-metadata">

**Author:** [@Athan\_D](https://www.ruby-forum.com/u/Athan_D)\
**Replies:** 5\
**Last updated:** [October 19, 2007, 7:04am UTC](https://www.ruby-forum.com/t/turning-off-disk-buffering/117609 "2007-10-19T07:04:01Z")

</div>

I wonder what’s the best practice to prevent or limit disk buffering, when using nginx as primary http server (php fcgi). Is it possible to turn it off completely? Athan

---

## [Radiant on Dreamhost: page\_attachments grouchy?](https://www.ruby-forum.com/t/radiant-on-dreamhost-page-attachments-grouchy/113001)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 5\
**Last updated:** [August 31, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/radiant-on-dreamhost-page-attachments-grouchy/113001 "2007-08-31T19:09:19Z")

</div>

I’ve just started using Radiant, and, so far, it’s so beautiful it makes me want to cry a little bit. But! … I’m having a little trouble with page\_attachments. Got them loaded properly on my home machine, but transfer…

---

## [Passage d'une vue en partiel =\> n'appelle plus le controlleu](https://www.ruby-forum.com/t/passage-dune-vue-en-partiel-nappelle-plus-le-controlleu/108286)

<div class="topic-metadata">

**Author:** [@CSSSSdric\_B](https://www.ruby-forum.com/u/CSSSSdric_B)\
**Replies:** 5\
**Last updated:** [July 2, 2007, 11:21am UTC](https://www.ruby-forum.com/t/passage-dune-vue-en-partiel-nappelle-plus-le-controlleu/108286 "2007-07-02T11:21:20Z")

</div>

Bonjour Ã tous, je dÃ©bute avec RoR ( ) et je rencontre un problÃ¨me aprÃ©s avoir converti une vue en partiel. Voici mon architecture de dÃ©part : \* J'ai un layout "index.rhtml". \* Un controlleur "user" qui possede …

---

## [How to output text from embbeded ruby (in views)](https://www.ruby-forum.com/t/how-to-output-text-from-embbeded-ruby-in-views/92996)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 5\
**Last updated:** [April 26, 2007, 7:12pm UTC](https://www.ruby-forum.com/t/how-to-output-text-from-embbeded-ruby-in-views/92996 "2007-04-26T19:12:19Z")

</div>

This is a pretty simple question I can’t find the answer to… Obviously \<%= %\> directs the output of all the commands inside the block to the html file being generated. that works fine with rails helpers and variables,…

---

## [Bug in Float? (was: NaN Error)](https://www.ruby-forum.com/t/bug-in-float-was-nan-error/92287)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 5\
**Last updated:** [April 18, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/bug-in-float-was-nan-error/92287 "2007-04-18T16:57:54Z")

</div>

I ran across some peculiar behavior yesterday when working with large floating point values. Here is a small script that demonstrates the behavior. My question is, is this the expected behavior or is this a bug in Flo…

---

## [To quote or not to quote (I think it's a bug)](https://www.ruby-forum.com/t/to-quote-or-not-to-quote-i-think-its-a-bug/86121)

<div class="topic-metadata">

**Author:** [@Matthieu\_R](https://www.ruby-forum.com/u/Matthieu_R)\
**Replies:** 5\
**Last updated:** [February 20, 2007, 7:16am UTC](https://www.ruby-forum.com/t/to-quote-or-not-to-quote-i-think-its-a-bug/86121 "2007-02-20T07:16:37Z")

</div>

Hi, I’m not sure this is the right place to report issues about Syck but that’s the best I’ve found so far :slight\_smile: I think I’ve found a problem with the way Syck quotes strings that could look like floats. He…

---

## [Re: Upgrade to Mental? Need 'how to'](https://www.ruby-forum.com/t/re-upgrade-to-mental-need-how-to/84015)

<div class="topic-metadata">

**Author:** [@poopsmith](https://www.ruby-forum.com/u/poopsmith)\
**Replies:** 5\
**Last updated:** [January 31, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/re-upgrade-to-mental-need-how-to/84015 "2007-01-31T18:25:45Z")

</div>

Textile and Markdown are now extensions, so you probably need to rake db:extension:migrate Have a look at http://radiantcms.org/blog/2007/01/23/how-to-getting-mental/ Gabriel L.

---

## [MySQL Warm Standby](https://www.ruby-forum.com/t/mysql-warm-standby/74164)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/mysql-warm-standby/74164 "2006-11-07T10:49:44Z")

</div>

I’m designing a new Railsapplication that needs to offer high availability. With Rails, we are already getting scalability out of the box. We are considering using a Kemp LM1500 hardware load balancer to manage reque…

---

## [Multiple threads on single port](https://www.ruby-forum.com/t/multiple-threads-on-single-port/62617)

<div class="topic-metadata">

**Author:** [@stuartbrand](https://www.ruby-forum.com/u/stuartbrand)\
**Replies:** 5\
**Last updated:** [June 6, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/multiple-threads-on-single-port/62617 "2006-06-06T20:53:12Z")

</div>

Hi all Can I use Ruby threads to have more then 1 server process running on the same port something like require ‘socket’ port = (ARGV\[0\] || 80).to\_i server = TCPServer.new(‘localhost’, port) threads = \[\] 10.time…

---

## [Sanitising a Phone Number input](https://www.ruby-forum.com/t/sanitising-a-phone-number-input/58689)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 5\
**Last updated:** [April 24, 2006, 10:42pm UTC](https://www.ruby-forum.com/t/sanitising-a-phone-number-input/58689 "2006-04-24T22:42:10Z")

</div>

I want to sanitise a phone number input. In my UsersController.rb file I have written a method that will take a string and reduce it to numbers only. This works find if I call it manually, but in the interests of keep…

---

## [Initialize called more than once?](https://www.ruby-forum.com/t/initialize-called-more-than-once/50410)

<div class="topic-metadata">

**Author:** [@dannyheathcote](https://www.ruby-forum.com/u/dannyheathcote)\
**Replies:** 5\
**Last updated:** [December 18, 2005, 4:53am UTC](https://www.ruby-forum.com/t/initialize-called-more-than-once/50410 "2005-12-18T04:53:28Z")

</div>

Hi, In my test case below, it seems that ‘initialize’ is called everytime ‘hello’ is called. Is this by design, a bug, or my pilot error? class FooController \< ApplicationController def initialize print "…

---

## [How to install rails\_tiny\_mce in Rails2.3.10](https://www.ruby-forum.com/t/how-to-install-rails-tiny-mce-in-rails2-3-10/204345)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [March 11, 2011, 10:34am UTC](https://www.ruby-forum.com/t/how-to-install-rails-tiny-mce-in-rails2-3-10/204345 "2011-03-11T10:34:04Z")

</div>

I have tried followed the guide in https://github.com/sandipransing/rails\_tiny\_mce/tree/rails\_2.x,but failed.I suggest the newest plugin in git://github.com/sandipransing/rails\_tiny\_mce.git only support Rails3.0.How …

---

## [Same has\_many and has\_one?](https://www.ruby-forum.com/t/same-has-many-and-has-one/172202)

<div class="topic-metadata">

**Author:** [@thebarge](https://www.ruby-forum.com/u/thebarge)\
**Replies:** 8\
**Last updated:** [July 17, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/same-has-many-and-has-one/172202 "2009-07-17T16:41:30Z")

</div>

I think I’ve just thoroughly confused myself at this point. I have a class that has a has\_many and has\_one relationship that use the same object. Here is an example: class Person \< ActiveRecord::Base has\_many :hobb…

---

## [Controllare se Ã¨ presente del codice in un File](https://www.ruby-forum.com/t/controllare-se-a-presente-del-codice-in-un-file/131399)

<div class="topic-metadata">

**Author:** [@koalalorenzo](https://www.ruby-forum.com/u/koalalorenzo)\
**Replies:** 8\
**Last updated:** [March 11, 2008, 11:28am UTC](https://www.ruby-forum.com/t/controllare-se-a-presente-del-codice-in-un-file/131399 "2008-03-11T11:28:08Z")

</div>

Salve a tutti, Ho necessitÃ di controllare se in un determinato file Ã¨ presente del testo. Premessa: Sto lavorando con Linux Il file in questione Ã¨ /etc/apt/sources.list e non Ã¨ modificabile se non con i permess…

---

## [Equivalent of "source" in ruby?](https://www.ruby-forum.com/t/equivalent-of-source-in-ruby/114027)

<div class="topic-metadata">

**Author:** [@Todd\_ASJacobs](https://www.ruby-forum.com/u/Todd_ASJacobs)\
**Replies:** 8\
**Last updated:** [September 10, 2007, 9:01am UTC](https://www.ruby-forum.com/t/equivalent-of-source-in-ruby/114027 "2007-09-10T09:01:07Z")

</div>

Contrary to my expectations, if I have some variable assignments in an external file, I can’t simply call: load rcfile to have it sourced. Instead, I found myself having to do this: IO.foreach(rcfile) do |line| eval…

---

## [Associazione molti-a-molti](https://www.ruby-forum.com/t/associazione-molti-a-molti/105763)

<div class="topic-metadata">

**Author:** [@roger](https://www.ruby-forum.com/u/roger)\
**Replies:** 8\
**Last updated:** [June 2, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/associazione-molti-a-molti/105763 "2007-06-02T18:25:15Z")

</div>

Ciao Popolo, StÃ² realizzando un progetto universitario, quindi non posso utilizzare ne tabelle in inglese e neanche le chiavi esterne in standard rail. Sono riuscito a risolvere quasi tutti i problemi dell’utilizzare…

---

## [Using mod\_rewrite to add 'www' to urls](https://www.ruby-forum.com/t/using-mod-rewrite-to-add-www-to-urls/104437)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 8\
**Last updated:** [May 18, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/using-mod-rewrite-to-add-www-to-urls/104437 "2007-05-18T14:02:08Z")

</div>

Hi guys. I’m using the following rule to point users to www.mydomain.com instead of mydomain.com. RewriteEngine On RewriteCond %{HTTP\_HOST} !^www.mydomain.com$ RewriteRule ^(.\*)$ http://www.mydomain.com/$1 \[R=301,QSA…

---

## [Forking and copying variables](https://www.ruby-forum.com/t/forking-and-copying-variables/91152)

<div class="topic-metadata">

**Author:** [@metrix](https://www.ruby-forum.com/u/metrix)\
**Replies:** 8\
**Last updated:** [April 5, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/forking-and-copying-variables/91152 "2007-04-05T21:22:31Z")

</div>

I have a script that sets a few variables and then forks. Each fork executes the script from top to bottom. Is there any way for the forks to get a copy of all the variables set before the fork, because each fork thin…

---

## [Relative power of Rails vs C#](https://www.ruby-forum.com/t/relative-power-of-rails-vs-c/85576)

<div class="topic-metadata">

**Author:** [@theduz](https://www.ruby-forum.com/u/theduz)\
**Replies:** 8\
**Last updated:** [February 16, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/relative-power-of-rails-vs-c/85576 "2007-02-16T17:27:29Z")

</div>

Hello, We have a quality, but farily small, rails backed site running that I developed last summer. The site is currently in our svn repo, and we use capistrano to deploy to our linux based web server. The site is …

---

## [Problem with ActiveRecord and PDFWriter](https://www.ruby-forum.com/t/problem-with-activerecord-and-pdfwriter/78241)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 8\
**Last updated:** [December 11, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/problem-with-activerecord-and-pdfwriter/78241 "2006-12-11T22:36:03Z")

</div>

Probably this has been discussed earlier elsewhere. I am having some problem while using PDFWriter in rails. following code throws error: my\_table.render\_on(pdf) In short, I get error: no marshal\_dump is defined for…

---

## [\[how can i delete a file system..please help\]](https://www.ruby-forum.com/t/how-can-i-delete-a-file-system-please-help/62912)

<div class="topic-metadata">

**Author:** [@Ioana\_K](https://www.ruby-forum.com/u/Ioana_K)\
**Replies:** 8\
**Last updated:** [June 9, 2006, 9:59pm UTC](https://www.ruby-forum.com/t/how-can-i-delete-a-file-system-please-help/62912 "2006-06-09T21:59:12Z")

</div>

Hi, I’m trying to delete a file system (\<xml\_26548975.xml\>) File.delete(“xml\_26548975.xml”) But I get this error: “Permission denied - ./script/…/config/…/uploads/xml\_26548975.xml”. Why?

---

## [Validations continued](https://www.ruby-forum.com/t/validations-continued/71534)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 8\
**Last updated:** [February 21, 2006, 9:49pm UTC](https://www.ruby-forum.com/t/validations-continued/71534 "2006-02-21T21:49:53Z")

</div>

I simply can’t figure this out. I have been reading and re-reading Agile book and wiki.rubyonrails.org - all sorts of validation methods and still, it doesn’t work. Controller code def create @client = Client.new(pa…

---

## [Ruby Code & Style is looking for articles](https://www.ruby-forum.com/t/ruby-code-style-is-looking-for-articles/51894)

<div class="topic-metadata">

**Author:** [@james\_b](https://www.ruby-forum.com/u/james_b)\
**Replies:** 8\
**Last updated:** [December 15, 2005, 12:02pm UTC](https://www.ruby-forum.com/t/ruby-code-style-is-looking-for-articles/51894 "2005-12-15T12:02:42Z")

</div>

Request for Article Submissions Ruby Code & Style is looking for articles. The first issue of Ruby Code & Style hit the Web just before RubyConf 2005, and it’s time to get back in gear and roll out the next one. Ruby…

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

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