# Top

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

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

---

## [Non-Hard Coded File.open(newFile)](https://www.ruby-forum.com/t/non-hard-coded-file-open-newfile/197962)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [October 23, 2010, 11:35pm UTC](https://www.ruby-forum.com/t/non-hard-coded-file-open-newfile/197962 "2010-10-23T23:35:18Z")

</div>

Like a lot of people I’m new to Ruby and I’m trying to do something I thought would be pretty simple. I want the user to give me input in the form of a filename and then subsequently open the file. Here is what I have…

---

## [How to change interactive ruby background?](https://www.ruby-forum.com/t/how-to-change-interactive-ruby-background/196189)

<div class="topic-metadata">

**Author:** [@amage](https://www.ruby-forum.com/u/amage)\
**Replies:** 5\
**Last updated:** [October 10, 2010, 2:21am UTC](https://www.ruby-forum.com/t/how-to-change-interactive-ruby-background/196189 "2010-10-10T02:21:08Z")

</div>

Hi, i’m newbie in programming…just started. So anybody can tell me how to change interactive ruby background colour coz black colour isn’t very good for my eyes. thanks in advance :slight\_smile:

---

## [How to use ruby script/console to debug methods in application.rb?](https://www.ruby-forum.com/t/how-to-use-ruby-script-console-to-debug-methods-in-application-rb/183145)

<div class="topic-metadata">

**Author:** [@lukas](https://www.ruby-forum.com/u/lukas)\
**Replies:** 5\
**Last updated:** [February 9, 2010, 8:44pm UTC](https://www.ruby-forum.com/t/how-to-use-ruby-script-console-to-debug-methods-in-application-rb/183145 "2010-02-09T20:44:20Z")

</div>

Hello everyone, newbie question: I have a couple of methods that interact with a remote python server in application.rb. Is there a convenient way to debug them? e.g. run them from “ruby script/console” - debug-cons…

---

## [Falla el routing en rails 2.1?](https://www.ruby-forum.com/t/falla-el-routing-en-rails-2-1/149912)

<div class="topic-metadata">

**Author:** [@satoshi](https://www.ruby-forum.com/u/satoshi)\
**Replies:** 5\
**Last updated:** [October 1, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/falla-el-routing-en-rails-2-1/149912 "2008-10-01T12:53:23Z")

</div>

Ya estoy mas que frito. Genere un scaffold sencillisimo para un modelo Post. El form para new que se genero hace esta pinta New post \<% form\_for(@post, :action =\> :create) do |f| %\> \<%= f.error\_messages %\> \<%…

---

## [Validacion de un formulario con que captura a 2 tablas](https://www.ruby-forum.com/t/validacion-de-un-formulario-con-que-captura-a-2-tablas/197242)

<div class="topic-metadata">

**Author:** [@fvasquez](https://www.ruby-forum.com/u/fvasquez)\
**Replies:** 5\
**Last updated:** [February 27, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/validacion-de-un-formulario-con-que-captura-a-2-tablas/197242 "2008-02-27T23:30:10Z")

</div>

Hola… Aqui ando de pregunton de nuevo… Ya logre tener un formulario el cual esta compuesto de elementos que capturan a 2 tablas user y virtual New user \<%= error\_messages\_for :user %\> \<% form\_for(@user) do |f| %\> …

---

## [Nil in evaluations](https://www.ruby-forum.com/t/nil-in-evaluations/92308)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [April 18, 2007, 11:57am UTC](https://www.ruby-forum.com/t/nil-in-evaluations/92308 "2007-04-18T11:57:26Z")

</div>

Problem: I have functions that sometimes evaluate to nil and cause my program to crash in comparisons, etc. For example g(x) and f(x) either could be nill in the following: if g(x) \> f(x) p “not reached” else p “a…

---

## [Hex to 4-byte/32-bit quantity](https://www.ruby-forum.com/t/hex-to-4-byte-32-bit-quantity/86752)

<div class="topic-metadata">

**Author:** [@mattias](https://www.ruby-forum.com/u/mattias)\
**Replies:** 5\
**Last updated:** [February 25, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/hex-to-4-byte-32-bit-quantity/86752 "2007-02-25T21:40:29Z")

</div>

I’m parsing a binary file and it contains (reading the specs on the format) uInt32Number, 4-byte/32-bit quantities. On the specific positions I read the value 0x000a - how do I turn this into a 32-bit quantity? Cheer…

---

## [Duda ...gran duda con web service](https://www.ruby-forum.com/t/duda-gran-duda-con-web-service/79495)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [December 18, 2006, 11:00pm UTC](https://www.ruby-forum.com/t/duda-gran-duda-con-web-service/79495 "2006-12-18T23:00:38Z")

</div>

Hola mundo!, bueno estoy desarrollando un web site con algunas caracteristicas para la que necesito ruby. El asunto es sencillo necesito llamar a un webservice en .Net y bueno he encontrado unas pÃ¡ginas muy bonitas …

---

## [How to chat](https://www.ruby-forum.com/t/how-to-chat/75990)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 5\
**Last updated:** [December 12, 2006, 6:53am UTC](https://www.ruby-forum.com/t/how-to-chat/75990 "2006-12-12T06:53:25Z")

</div>

Railsers: Seeing as how everyone who works out a Rails technique should blog about it, (and seeing as how I decline to research how to build a gem, plugin, or blog), this post will sketch a system I developed to chat…

---

## [UTF-8 as default charset?](https://www.ruby-forum.com/t/utf-8-as-default-charset/62311)

<div class="topic-metadata">

**Author:** [@keltia](https://www.ruby-forum.com/u/keltia)\
**Replies:** 5\
**Last updated:** [June 7, 2006, 5:18pm UTC](https://www.ruby-forum.com/t/utf-8-as-default-charset/62311 "2006-06-07T17:18:07Z")

</div>

It seems that by default radiant/mongrel sens out HTTP headers with charset=“ISO-8859-1” (the standard for text/html where as I want it to send UTF-8 as all my pages are XHTML compliant and in UTF-8. \<?xml version="1.…

---

## [\[OT\] Rails hosting question -- video centric](https://www.ruby-forum.com/t/ot-rails-hosting-question-video-centric/61624)

<div class="topic-metadata">

**Author:** [@jameslabocki](https://www.ruby-forum.com/u/jameslabocki)\
**Replies:** 5\
**Last updated:** [May 25, 2006, 10:23pm UTC](https://www.ruby-forum.com/t/ot-rails-hosting-question-video-centric/61624 "2006-05-25T22:23:25Z")

</div>

This is OT in the sense that it’s yet another hosting question and not strictly a problem I’m having with Rails. Basically, I trust and appreciate the knowledge of the folks on this list so I’m hoping for some insigh…

---

## [Ruby on rails international & BIRT integration?](https://www.ruby-forum.com/t/ruby-on-rails-international-birt-integration/59541)

<div class="topic-metadata">

**Author:** [@jooray](https://www.ruby-forum.com/u/jooray)\
**Replies:** 5\
**Last updated:** [May 4, 2006, 2:39pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-international-birt-integration/59541 "2006-05-04T14:39:49Z")

</div>

Hello, I see, that Rails is quite english-centric. I am developing some webs, that are not primarily in English. I have a few questions: besides turning of plurals, what should I take care? How to use utf-8 for all …

---

## [Validating a DateTime](https://www.ruby-forum.com/t/validating-a-datetime/93779)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 5\
**Last updated:** [April 27, 2006, 2:33am UTC](https://www.ruby-forum.com/t/validating-a-datetime/93779 "2006-04-27T02:33:12Z")

</div>

Hi, Does anyone know of a method to validate a DateTime field? I’ve looked at the validation docs and the validates\_date / validates\_time plug-in but I can’t find a method to validate a value in the format of yyyymmd…

---

## [Ruby 1.8.4 rc breaks alias\_method/rails in bad ways](https://www.ruby-forum.com/t/ruby-1-8-4-rc-breaks-alias-method-rails-in-bad-ways/97070)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 5\
**Last updated:** [December 11, 2005, 11:09pm UTC](https://www.ruby-forum.com/t/ruby-1-8-4-rc-breaks-alias-method-rails-in-bad-ways/97070 "2005-12-11T23:09:27Z")

</div>

i’m on a box with latest (today’s) ruby and rails. i started seeing bizzare errors with infinite stack recursion for a simple ModelName.find :all the code is kinda deep, but you can see how the problem occurs by lo…

---

## [Euchre Hands (#55)](https://www.ruby-forum.com/t/euchre-hands-55/79954)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 5\
**Last updated:** [November 21, 2005, 3:29am UTC](https://www.ruby-forum.com/t/euchre-hands-55/79954 "2005-11-21T03:29:43Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Best Applicant Tracking Systems for Recruiters](https://www.ruby-forum.com/t/best-applicant-tracking-systems-for-recruiters/264958)

<div class="topic-metadata">

**Author:** [@Micheal](https://www.ruby-forum.com/u/Micheal)\
**Replies:** 0\
**Last updated:** [August 7, 2024, 10:12am UTC](https://www.ruby-forum.com/t/best-applicant-tracking-systems-for-recruiters/264958 "2024-08-07T10:12:51Z")

</div>

When it comes to optimizing the recruitment process, several Applicant Tracking Systems (ATS) stand out for their features, ease of use, and overall effectiveness. Here are some of the \[best ATS systems available for rec…

---

## [Cache calculating erroneous size](https://www.ruby-forum.com/t/cache-calculating-erroneous-size/244908)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 5, 2016, 9:44pm UTC](https://www.ruby-forum.com/t/cache-calculating-erroneous-size/244908 "2016-07-05T21:44:33Z")

</div>

Hello, I’ve been experiencing a rather strange situation regarding the cache size occupation (calculated by nginx’s cache manager and reported in debug logs) versus the real occupied size as reported by df. Just exe…

---

## [Rails, Mongoid-Ancestry: Exclude child nodes if parent node is not selected](https://www.ruby-forum.com/t/rails-mongoid-ancestry-exclude-child-nodes-if-parent-node-is-not-selected/234664)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [March 23, 2015, 1:13am UTC](https://www.ruby-forum.com/t/rails-mongoid-ancestry-exclude-child-nodes-if-parent-node-is-not-selected/234664 "2015-03-23T01:13:59Z")

</div>

Hello! Please help with trouble (I think it must be obvious solution) I have code for displaying main menu: @main\_menu = Page.where(active: true).arrange(order: :position) It grabs all nodes with active parameter is s…

---

## [Throttle question](https://www.ruby-forum.com/t/throttle-question/239835)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [March 16, 2014, 6:11pm UTC](https://www.ruby-forum.com/t/throttle-question/239835 "2014-03-16T18:11:58Z")

</div>

For testing purposes I use vector source (byte ) -\> vector to stream -\> throttle -\> \[blocks to test\] In the vector source “repeat” is set to “yes” and the sample rate is set to 1024 ( and in the throttle block , too …

---

## [\[Ruby 1.9 - Bug #5439\]\[Open\] r33361以降sample/test.rb:systemがFになる](https://www.ruby-forum.com/t/ruby-1-9-bug-5439-open-r33361-sample-test-rb-system-f/212765)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [October 13, 2011, 8:42am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-5439-open-r33361-sample-test-rb-system-f/212765 "2011-10-13T08:42:08Z")

</div>

Issue #5439 has been reported by Naohisa G… Bug #5439: r33361以降sample/test.rb:systemがFになる Author: Naohisa G. Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: 1.9.x r33361の変更により、ccでコンパ…

---

## [Other way instead of this evil eval?](https://www.ruby-forum.com/t/other-way-instead-of-this-evil-eval/206521)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [May 3, 2011, 9:44pm UTC](https://www.ruby-forum.com/t/other-way-instead-of-this-evil-eval/206521 "2011-05-03T21:44:19Z")

</div>

I am trying to do this, where associated\_record\_type is always of the name of a model, passed to the method: record = eval("#{associated\_record\_type}").find\_by\_id(associated\_record\_id) Is there a way to do this dyna…

---

## [Nginx's hashtable key hash function](https://www.ruby-forum.com/t/nginxs-hashtable-key-hash-function/192348)

<div class="topic-metadata">

**Author:** [@Barry\_Jaspan](https://www.ruby-forum.com/u/Barry_Jaspan)\
**Replies:** 0\
**Last updated:** [July 28, 2010, 8:17pm UTC](https://www.ruby-forum.com/t/nginxs-hashtable-key-hash-function/192348 "2010-07-28T20:17:15Z")

</div>

This message assumes some understanding of nginx’s hash table algorithms in ngx\_hash.c. I’m having some problems with nginx’s server\_names hash table. I’ve dug into the code and believe I have found the issue. I’m c…

---

## [Running Webrick with RAILS\_ENV=production](https://www.ruby-forum.com/t/running-webrick-with-rails-env-production/187437)

<div class="topic-metadata">

**Author:** [@Shane\_Holder](https://www.ruby-forum.com/u/Shane_Holder)\
**Replies:** 3\
**Last updated:** [May 1, 2010, 3:04pm UTC](https://www.ruby-forum.com/t/running-webrick-with-rails-env-production/187437 "2010-05-01T15:04:18Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [Raw Post error going into mongrel:Error reading HTTP body: #](https://www.ruby-forum.com/t/raw-post-error-going-into-mongrel-error-reading-http-body/187711)

<div class="topic-metadata">

**Author:** [@robblovell](https://www.ruby-forum.com/u/robblovell)\
**Replies:** 0\
**Last updated:** [April 28, 2010, 5:40am UTC](https://www.ruby-forum.com/t/raw-post-error-going-into-mongrel-error-reading-http-body/187711 "2010-04-28T05:40:52Z")

</div>

I am writing to an API that returns data in a callback as a raw POST request. On it’s way into my rails controller, mongrel can’t read the body of the request. A PHP routine inside Apache has no problem with the req…

---

## [Trace local variable](https://www.ruby-forum.com/t/trace-local-variable/183990)

<div class="topic-metadata">

**Author:** [@onionwushu](https://www.ruby-forum.com/u/onionwushu)\
**Replies:** 3\
**Last updated:** [February 26, 2010, 12:43am UTC](https://www.ruby-forum.com/t/trace-local-variable/183990 "2010-02-26T00:43:50Z")

</div>

Hi ! I’ve searched a lot to get an answer but I can’t figured it out. I wish to trace local variables in a method. Here is an example: def test a = 1 b = 2 end Returns: Variable a gets the value 1 in test Variab…

---

## [Require\_role on a per action basis](https://www.ruby-forum.com/t/require-role-on-a-per-action-basis/168880)

<div class="topic-metadata">

**Author:** [@asplake](https://www.ruby-forum.com/u/asplake)\
**Replies:** 3\
**Last updated:** [May 27, 2009, 10:42am UTC](https://www.ruby-forum.com/t/require-role-on-a-per-action-basis/168880 "2009-05-27T10:42:08Z")

</div>

I am working on an app that has three roles (user, admin, business). I have the situation where all three roles interact with the same controller, but have access to different actions. Some actions are authorized for …

---

## [Question re: stubbing out validations](https://www.ruby-forum.com/t/question-re-stubbing-out-validations/167697)

<div class="topic-metadata">

**Author:** [@barunio](https://www.ruby-forum.com/u/barunio)\
**Replies:** 3\
**Last updated:** [May 12, 2009, 3:15am UTC](https://www.ruby-forum.com/t/question-re-stubbing-out-validations/167697 "2009-05-12T03:15:15Z")

</div>

Suppose a “User” has many “widgets”, and that we have a method in the User class that does something like: def update\_widgets x = … code to do some calculations … if x \> 5 new\_widget = widgets.new new\_widget.save! …

---

## [Problems with ToolBar Sintaxis](https://www.ruby-forum.com/t/problems-with-toolbar-sintaxis/149636)

<div class="topic-metadata">

**Author:** [@ramo](https://www.ruby-forum.com/u/ramo)\
**Replies:** 3\
**Last updated:** [September 29, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/problems-with-toolbar-sintaxis/149636 "2008-09-29T21:49:09Z")

</div>

First of all, it’s my first week learnig ruby and so is for wxruby,also this is my first time working with a GUI so please, please, be patient. I’m having problems with the code for a toolbar, i want to add an item, b…

---

## [Truncate and regex](https://www.ruby-forum.com/t/truncate-and-regex/142710)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 3\
**Last updated:** [July 10, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/truncate-and-regex/142710 "2008-07-10T23:00:26Z")

</div>

Hey, New to ruby and unfamiliar with the function ‘truncate’ Also, what does this do: gsub(/\<.\*?\>/, ‘’) Particularly, the regex. Thanks!

---

## [Problem in form validation of input using onSubmit](https://www.ruby-forum.com/t/problem-in-form-validation-of-input-using-onsubmit/135438)

<div class="topic-metadata">

**Author:** [@prionko](https://www.ruby-forum.com/u/prionko)\
**Replies:** 3\
**Last updated:** [April 23, 2008, 4:44am UTC](https://www.ruby-forum.com/t/problem-in-form-validation-of-input-using-onsubmit/135438 "2008-04-23T04:44:59Z")

</div>

Hi, Im trying to check for uploading of files of only doc and ps types. For that matter I have used two javascript funtions and the form. Im trying to use onSubmit event handler along with form\_for.But the problem is …

---

## [Onchange Event Combobox](https://www.ruby-forum.com/t/onchange-event-combobox/128985)

<div class="topic-metadata">

**Author:** [@bluecat](https://www.ruby-forum.com/u/bluecat)\
**Replies:** 3\
**Last updated:** [February 14, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/onchange-event-combobox/128985 "2008-02-14T13:45:17Z")

</div>

Hallo zusammen, ich möchte den Wechsel der Auswahl in einer Combobox mitbekommen. Dazu habe ich folgenden Code geschrieben. document.observe(“dom:loaded”, function() {// Ausführen wenn DOM fertig geladen wurde var …

---

## [Question about require and pdf-writer](https://www.ruby-forum.com/t/question-about-require-and-pdf-writer/57231)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 3\
**Last updated:** [October 27, 2006, 10:42am UTC](https://www.ruby-forum.com/t/question-about-require-and-pdf-writer/57231 "2006-10-27T10:42:22Z")

</div>

I am just begining with Ruby (decent overall programming background though) and I’m looking to try out the pdf-writer ruby gem. I read the guide from the pdf-writer author, Austin Z. (artima - Creating Printable Docum…

---

## [Usrp tx documentation/confusion](https://www.ruby-forum.com/t/usrp-tx-documentation-confusion/59750)

<div class="topic-metadata">

**Author:** [@eterps](https://www.ruby-forum.com/u/eterps)\
**Replies:** 3\
**Last updated:** [May 6, 2006, 2:08am UTC](https://www.ruby-forum.com/t/usrp-tx-documentation-confusion/59750 "2006-05-06T02:08:18Z")

</div>

I’ve been trying to work out how to do some things on the transmit side of gnuradio, and I’ve noticed there’s something of a dearth of documentation. Most of it amounts to “its just like receive, only backwards.” Th…

---

## [Such a simple test fails. But why?](https://www.ruby-forum.com/t/such-a-simple-test-fails-but-why/216849)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 16, 2012, 11:14am UTC](https://www.ruby-forum.com/t/such-a-simple-test-fails-but-why/216849 "2012-02-16T11:14:12Z")

</div>

I just tried to integrate a simple test to check some options passed as argument to a class to be executed: require 'spec\_helper' module PropertyInjector describe Options do describe "#source folder option" do …

---

## [Daemonize, redirect stdin and stdout and write a pidfile](https://www.ruby-forum.com/t/daemonize-redirect-stdin-and-stdout-and-write-a-pidfile/184796)

<div class="topic-metadata">

**Author:** [@gderosa](https://www.ruby-forum.com/u/gderosa)\
**Replies:** 1\
**Last updated:** [March 9, 2010, 11:07am UTC](https://www.ruby-forum.com/t/daemonize-redirect-stdin-and-stdout-and-write-a-pidfile/184796 "2010-03-09T11:07:00Z")

</div>

Hi! the subject is a very standard requirement and should be done in a very standard way: through ruby core, stdlib or some very popular gem, like Daemons ( http://daemons.rubyforge.org/ ) Anyway, I don’t know how to…

---

## [Not receiving FXTopWindow events](https://www.ruby-forum.com/t/not-receiving-fxtopwindow-events/178814)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 1\
**Last updated:** [November 11, 2009, 9:17pm UTC](https://www.ruby-forum.com/t/not-receiving-fxtopwindow-events/178814 "2009-11-11T21:17:26Z")

</div>

I am trying to listen for the FXTopWindow events SEL\_CLOSE, SEL\_MINIMIZE, SEL\_MAXIMIZE, SEL\_RESTORE because I want to execute some code when a person presses the X button to close the window, etc. None of my code gets…

---

## [Noob question - assigning hash to flash error](https://www.ruby-forum.com/t/noob-question-assigning-hash-to-flash-error/111577)

<div class="topic-metadata">

**Author:** [@donna](https://www.ruby-forum.com/u/donna)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/noob-question-assigning-hash-to-flash-error/111577 "2007-08-08T19:41:54Z")

</div>

In my controller, I have this simple code: hashThing = Hash.new{ |hash, key| hash\[key\] = \[\] }; # this declares a hash with array values hashThing\[‘something’\] \<\< “value1” \<\< “value”; flash\[:quick\_store\_hash\] = hashTh…

---

## [:dependent =\> :destroy vs ON DELETE CASCADE](https://www.ruby-forum.com/t/dependent-destroy-vs-on-delete-cascade/87296)

<div class="topic-metadata">

**Author:** [@suer\_rick](https://www.ruby-forum.com/u/suer_rick)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 3:23pm UTC](https://www.ruby-forum.com/t/dependent-destroy-vs-on-delete-cascade/87296 "2007-03-01T15:23:39Z")

</div>

Sorry if I missed this in the docs somewhere. My guess is that if I use :dependent =\> :destroy, then the application sends commands to the db to destroy the dependent records. If I am using a database that supports FK…

---

## [Absolute path to public/images in rake task?](https://www.ruby-forum.com/t/absolute-path-to-public-images-in-rake-task/102152)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [August 15, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/absolute-path-to-public-images-in-rake-task/102152 "2006-08-15T14:17:20Z")

</div>

Hi all I’m trying to create a rake task for the first time, so please be a bit patient with me. :wink: I’m coding a photo gallery. Every photo gallery’s photos are in its own folder, and after an update I’d like to b…

---

## [GBP/pound sign being converted to question mark](https://www.ruby-forum.com/t/gbp-pound-sign-being-converted-to-question-mark/59195)

<div class="topic-metadata">

**Author:** [@rich](https://www.ruby-forum.com/u/rich)\
**Replies:** 1\
**Last updated:** [May 9, 2006, 11:18pm UTC](https://www.ruby-forum.com/t/gbp-pound-sign-being-converted-to-question-mark/59195 "2006-05-09T23:18:38Z")

</div>

Hi everbody. I’m at my wit’s end with a tiny bug in my Rails app. The UK pound symbol (Â£) is being converted to a question mark (?) somewhere when I save my models. Here’s all the information I can think of. Constru…

---

## [Which below metacharacters will fit for below expression?](https://www.ruby-forum.com/t/which-below-metacharacters-will-fit-for-below-expression/261541)

<div class="topic-metadata">

**Author:** [@docky12](https://www.ruby-forum.com/u/docky12)\
**Replies:** 2\
**Last updated:** [July 16, 2021, 12:02pm UTC](https://www.ruby-forum.com/t/which-below-metacharacters-will-fit-for-below-expression/261541 "2021-07-16T12:02:59Z")

</div>

/26 \\-30 \\\*260 \\+382 = \\?/.match('Result is 30\*260')

---

## [How to use chruby with sudo and foreman?](https://www.ruby-forum.com/t/how-to-use-chruby-with-sudo-and-foreman/230851)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 9, 2014, 4:10am UTC](https://www.ruby-forum.com/t/how-to-use-chruby-with-sudo-and-foreman/230851 "2014-07-09T04:10:51Z")

</div>

Please, could you help me? I am trying to use sudo with chruby and foreman, but without success. I tried: $ sudo chruby-exec ruby-2.1.2 – foreman $ foreman: command not found But the same command with rake command w…

---

## [How to defy this url in nginx.conf](https://www.ruby-forum.com/t/how-to-defy-this-url-in-nginx-conf/217719)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 10, 2012, 6:49am UTC](https://www.ruby-forum.com/t/how-to-defy-this-url-in-nginx-conf/217719 "2012-03-10T06:49:05Z")

</div>

My server can’t be run normal now,when I check the access.log I see there are lot of connections request my site url : /iclk/?zoneid=15&uid=1000 . I want to defy this url in nginx.conf. I just write the below code in …

---

## [Error with splat params in method definition](https://www.ruby-forum.com/t/error-with-splat-params-in-method-definition/216469)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 6, 2012, 11:02am UTC](https://www.ruby-forum.com/t/error-with-splat-params-in-method-definition/216469 "2012-02-06T11:02:49Z")

</div>

I’d like to ask why having: def my\_method(\*param1, param2 = "default"); end returns SyntaxError: (irb):15: syntax error, unexpected '=', expecting ')' My workaround is explicitly wrap param in brackets like this: de…

---

## [Cucumber - before scenario outline, but just one time](https://www.ruby-forum.com/t/cucumber-before-scenario-outline-but-just-one-time/198576)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [November 3, 2010, 8:57pm UTC](https://www.ruby-forum.com/t/cucumber-before-scenario-outline-but-just-one-time/198576 "2010-11-03T20:57:32Z")

</div>

If I have a Background section and a Scenario Outline, the Background runs once before each example in the scenario outline. Is there a hook that before the Scenario Outline, but not before each example? Jon

---

## [Problem with vrt code](https://www.ruby-forum.com/t/problem-with-vrt-code/183914)

<div class="topic-metadata">

**Author:** [@Per\_Z](https://www.ruby-forum.com/u/Per_Z)\
**Replies:** 2\
**Last updated:** [February 23, 2010, 11:25am UTC](https://www.ruby-forum.com/t/problem-with-vrt-code/183914 "2010-02-23T11:25:56Z")

</div>

Hi All, I am transmitting using tx\_samples and receiving with rx\_streaming\_samples. I use basic daughterboards. The signal transmitted is just a sequence of the value 10000+10000j. The carrier frequency is set to 10M…

---

## [Collection\_select and has\_many :through](https://www.ruby-forum.com/t/collection-select-and-has-many-through/177731)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 22, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/collection-select-and-has-many-through/177731 "2009-10-22T19:44:16Z")

</div>

I am having a bit of an issue with updating multiple models from one form - and in particular the collection\_select related to a has\_many through relationship. I have the following models: (Location is a pseudo-class…

---

## [Sessions not working for active\_record\_store](https://www.ruby-forum.com/t/sessions-not-working-for-active-record-store/166037)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 2\
**Last updated:** [April 21, 2009, 8:53pm UTC](https://www.ruby-forum.com/t/sessions-not-working-for-active-record-store/166037 "2009-04-21T20:53:28Z")

</div>

I just upgraded to rails 2.3.2 from rails 1.2.x and one of the issue was that I was getting an error of CookieOverflow. Setup is Apache+Phusion+Rails 2.3.2+Mysql So, I switched to active\_record\_store by uncommenting t…

---

## [Rescue ActiveRecord::RecordInvalid](https://www.ruby-forum.com/t/rescue-activerecord-recordinvalid/159006)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 2\
**Last updated:** [January 30, 2009, 10:52am UTC](https://www.ruby-forum.com/t/rescue-activerecord-recordinvalid/159006 "2009-01-30T10:52:47Z")

</div>

Hi all, I am using is\_attachment plugin, but I will always end up with this error: RuntimeError in PostsController#create BLAH which was caused by: version.filename = file\_name\_for\_version(version\_name) begin ver…

---

## [Files with .fs extension in ruby on rails application](https://www.ruby-forum.com/t/files-with-fs-extension-in-ruby-on-rails-application/153138)

<div class="topic-metadata">

**Author:** [@rpm](https://www.ruby-forum.com/u/rpm)\
**Replies:** 2\
**Last updated:** [December 6, 2008, 2:51am UTC](https://www.ruby-forum.com/t/files-with-fs-extension-in-ruby-on-rails-application/153138 "2008-12-06T02:51:57Z")

</div>

I am using Spiceworks, an application made with Ruby on Rails. It has some files with .fs extension but i donÂ´t know what are this files and with wich tools are generated. Â¿Could someone say me something about it? I…

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

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