# Top

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

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

---

## [Mocking find\_by\_sql](https://www.ruby-forum.com/t/mocking-find-by-sql/169614)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [June 5, 2009, 11:18pm UTC](https://www.ruby-forum.com/t/mocking-find-by-sql/169614 "2009-06-05T23:18:19Z")

</div>

Hi, I cannot manage to mock a call to find\_by\_sql. Which class is actually getting called? It is not the model, and I tried ActiveRecord which didn’t work either.

---

## [How to add custom properties to image file?](https://www.ruby-forum.com/t/how-to-add-custom-properties-to-image-file/110714)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 5\
**Last updated:** [July 30, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/how-to-add-custom-properties-to-image-file/110714 "2007-07-30T19:05:16Z")

</div>

Hello, I want to add custom properties to image files using RMagick, and these properties will embed into the image file directly. And later, I can retrieve those information back. Any idea, appreciate… Thanks

---

## [File.unlink(nonwestern\_filename) ---\> Error on Windows](https://www.ruby-forum.com/t/file-unlink-nonwestern-filename-error-on-windows/108634)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [July 6, 2007, 3:52am UTC](https://www.ruby-forum.com/t/file-unlink-nonwestern-filename-error-on-windows/108634 "2007-07-06T03:52:56Z")

</div>

Hi! I use Ruby on Windows, and tried to remove all files in a directory with the code given below. But if the directory contains files with filenames having non-western characters the operation fails. I first encount…

---

## [Rails 1.2 approacheth and the engines plugin may be a'changi](https://www.ruby-forum.com/t/rails-1-2-approacheth-and-the-engines-plugin-may-be-achangi/78838)

<div class="topic-metadata">

**Author:** [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Replies:** 5\
**Last updated:** [December 9, 2006, 1:08am UTC](https://www.ruby-forum.com/t/rails-1-2-approacheth-and-the-engines-plugin-may-be-achangi/78838 "2006-12-09T01:08:32Z")

</div>

Hello all, Firstly, thanks again for all your support with the development of this plugin; arguably one of the most complex extensions of Rails, it would be much harder to keep it all together without your feedback. I…

---

## [I found the Rubocop yml file](https://www.ruby-forum.com/t/i-found-the-rubocop-yml-file/259485)

<div class="topic-metadata">

**Author:** [@PaulGureghian](https://www.ruby-forum.com/u/PaulGureghian)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 10:11pm UTC](https://www.ruby-forum.com/t/i-found-the-rubocop-yml-file/259485 "2020-05-05T22:11:24Z")

</div>

Is this the file I need to edit in order to mute offences I don’t agree with or want ? For example, If I want to mute these offences, is this file the place to do it ?

---

## [Ruby Programmierer in Hamburg gesucht](https://www.ruby-forum.com/t/ruby-programmierer-in-hamburg-gesucht/252754)

<div class="topic-metadata">

**Author:** [@Ude](https://www.ruby-forum.com/u/Ude)\
**Replies:** 2\
**Last updated:** [July 23, 2019, 8:30am UTC](https://www.ruby-forum.com/t/ruby-programmierer-in-hamburg-gesucht/252754 "2019-07-23T08:30:19Z")

</div>

Zur Weiterentwicklung und Betreuung unserer Softwarelösungen, sowie Neuentwicklung. Deine Wünsche: gutes Betriebsklima, nette Kollegen, tageweise Homeoffice, eigene Entwicklungsmöglichkeiten, kurze Entscheidungswege Un…

---

## [\[ruby-trunk - Bug #9045\]\[Open\] URIに含まれるエンコードされたID/パスワードがデコードされない](https://www.ruby-forum.com/t/ruby-trunk-bug-9045-open-uri-id/246471)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [October 24, 2013, 4:34am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-9045-open-uri-id/246471 "2013-10-24T04:34:25Z")

</div>

Issue #9045 has been reported by vmi (Motonori IWAMURO). Bug #9045: URIに含まれるエンコードされたID/パスワードがデコードされない Author: vmi (Motonori IWAMURO) Status: Open Priority: Normal Assignee: Category: lib Target version: ruby -v…

---

## [Utilizzo di un webservice .Net e username con chiocciola](https://www.ruby-forum.com/t/utilizzo-di-un-webservice-net-e-username-con-chiocciola/172541)

<div class="topic-metadata">

**Author:** [@lobo](https://www.ruby-forum.com/u/lobo)\
**Replies:** 4\
**Last updated:** [July 24, 2009, 12:13am UTC](https://www.ruby-forum.com/t/utilizzo-di-un-webservice-net-e-username-con-chiocciola/172541 "2009-07-24T00:13:42Z")

</div>

Dovrei chiamare un web service scritto in .Net Il servizio Ã¨ sotto BASIC AUTHENTICATION tant’Ã¨ che, se da firefox digito: http://websiteuser%40llo.net:removed\_email\_address@domain.invalid/grlweb/services/grlws.asmx?…

---

## [Cerco Sviluppatore Ruby freelence per lavoro su progetto](https://www.ruby-forum.com/t/cerco-sviluppatore-ruby-freelence-per-lavoro-su-progetto/259781)

<div class="topic-metadata">

**Author:** [@jacopillo](https://www.ruby-forum.com/u/jacopillo)\
**Replies:** 1\
**Last updated:** [June 12, 2020, 12:24pm UTC](https://www.ruby-forum.com/t/cerco-sviluppatore-ruby-freelence-per-lavoro-su-progetto/259781 "2020-06-12T12:24:37Z")

</div>

Buongiorno a tutti sto cercando uno sviluppatore Ruby per un progetto Web Se mi contattate al seguente numero vi spiego il dettaglio del progetto e parliamo insieme dei tempi / Costi Grazie mille Jacopo 3334659271

---

## [Ruby on Rails Developer - Dallas/Fort Worth](https://www.ruby-forum.com/t/ruby-on-rails-developer-dallas-fort-worth/248570)

<div class="topic-metadata">

**Author:** [@eahanlon23](https://www.ruby-forum.com/u/eahanlon23)\
**Replies:** 1\
**Last updated:** [October 16, 2018, 5:28am UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-dallas-fort-worth/248570 "2018-10-16T05:28:10Z")

</div>

Hello Guys and Gals, The successful candidate will be responsible for the development and support of custom software solutions, enhancement of existing business systems and the support and development of the MES system …

---

## [Pasar una variable de un input text en link\_to\_remote](https://www.ruby-forum.com/t/pasar-una-variable-de-un-input-text-en-link-to-remote/91072)

<div class="topic-metadata">

**Author:** [@Miguel\_Angel\_Callej](https://www.ruby-forum.com/u/Miguel_Angel_Callej)\
**Replies:** 7\
**Last updated:** [April 4, 2007, 11:54am UTC](https://www.ruby-forum.com/t/pasar-una-variable-de-un-input-text-en-link-to-remote/91072 "2007-04-04T11:54:11Z")

</div>

Tengo una plantilla para editar una foto, \<%= text\_field “foto”, “titulo”,“size”=\>40 %\> \<%= link\_to\_remote( “Grabar”, :update =\> “listado\_fotos”, :url =\>{ :action =\> :update\_foto,:id=\>@foto, :titulo=\>‘valor de foto\[…

---

## [Migration doesn't load data. How to debug a migration?](https://www.ruby-forum.com/t/migration-doesnt-load-data-how-to-debug-a-migration/80964)

<div class="topic-metadata">

**Author:** [@yitzhakbg](https://www.ruby-forum.com/u/yitzhakbg)\
**Replies:** 7\
**Last updated:** [January 4, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/migration-doesnt-load-data-how-to-debug-a-migration/80964 "2007-01-04T22:42:28Z")

</div>

We’re learning Rails from the 2nd edition of Agile Web development with Rails under Ubuntu Edgy. I messed up the Ruby and Gem environment but managed to put the pieces together. However, there is one outstanding probl…

---

## [Make a symbol represent a method?](https://www.ruby-forum.com/t/make-a-symbol-represent-a-method/49337)

<div class="topic-metadata">

**Author:** [@chris.irish](https://www.ruby-forum.com/u/chris.irish)\
**Replies:** 7\
**Last updated:** [December 2, 2005, 9:41pm UTC](https://www.ruby-forum.com/t/make-a-symbol-represent-a-method/49337 "2005-12-02T21:41:48Z")

</div>

I just read a FAQ page online about Ruby symbols and someone mentions this Also, the entirely realistic reasoning for using symbols: If you are going to refer to a method name, use a symbol. Because by defining the m…

---

## [Metasploit-framework in a IDE with debugger](https://www.ruby-forum.com/t/metasploit-framework-in-a-ide-with-debugger/243674)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [December 18, 2015, 8:00pm UTC](https://www.ruby-forum.com/t/metasploit-framework-in-a-ide-with-debugger/243674 "2015-12-18T20:00:50Z")

</div>

Hi, 1- I have a friend which will learn programming only if I find a way to setup metasploit-framework in a IDE and a debugger, 2- I’m quite sure that metasploit is one of the biggest ruby program, So my big question…

---

## [Accessing a "helper" method "foo" defined in a controller, in a .js file](https://www.ruby-forum.com/t/accessing-a-helper-method-foo-defined-in-a-controller-in-a-js-file/234714)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [March 24, 2015, 7:02pm UTC](https://www.ruby-forum.com/t/accessing-a-helper-method-foo-defined-in-a-controller-in-a-js-file/234714 "2015-03-24T19:02:51Z")

</div>

Hello. I am having some trouble accessing a method “foo” I defined in a controller. I was under the impression that if “foo” is in the controller that renders bar.html.erb, then bar.html.erb can in fact see a method…

---

## [Modelling tools for Ruby, IDE and BPMN support](https://www.ruby-forum.com/t/modelling-tools-for-ruby-ide-and-bpmn-support/224449)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 13, 2012, 2:04am UTC](https://www.ruby-forum.com/t/modelling-tools-for-ruby-ide-and-bpmn-support/224449 "2012-11-13T02:04:46Z")

</div>

Hi, I consider Ruby as a technology for my project. I am a Python developer, but I would like to try Ruby too. I want to know, which IDE do you guys find as a good choice. It would be great if there are modelling too…

---

## [Should return the number of input or the number of output?](https://www.ruby-forum.com/t/should-return-the-number-of-input-or-the-number-of-output/239652)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [March 11, 2014, 10:17am UTC](https://www.ruby-forum.com/t/should-return-the-number-of-input-or-the-number-of-output/239652 "2014-03-11T10:17:02Z")

</div>

Dear Sir, A python sink block created by gr\_modtool has below work() function, it returns the number of input items. def work(self, input\_items, output\_items): in0 = input\_items\[0\] # \<+signal processing here+\> …

---

## [Need a help to get a good start with Nokogiri #css syntax](https://www.ruby-forum.com/t/need-a-help-to-get-a-good-start-with-nokogiri-css-syntax/228641)

<div class="topic-metadata">

**Author:** [@pritamdey](https://www.ruby-forum.com/u/pritamdey)\
**Replies:** 6\
**Last updated:** [June 1, 2013, 6:55pm UTC](https://www.ruby-forum.com/t/need-a-help-to-get-a-good-start-with-nokogiri-css-syntax/228641 "2013-06-01T18:55:26Z")

</div>

Hi, I am learning “Nokogiri”. But I am quite good Nokogiri’s #xpath technique.But wanted to learn also #css. So started to search online materials to see how other writes a code using CSS techniques. Doing so I got o…

---

## [Accepts nest attributes & attr\_accessible](https://www.ruby-forum.com/t/accepts-nest-attributes-attr-accessible/188838)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 6\
**Last updated:** [May 19, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/accepts-nest-attributes-attr-accessible/188838 "2010-05-19T18:49:54Z")

</div>

Hey, Just going over some of the accepts of accepts\_nested\_attributes\_for & attr\_accessible. I found with the form and models I’ve been working on it would be great if I could use accepts\_nested\_attribtues but I want…

---

## [Need help comparing Array data](https://www.ruby-forum.com/t/need-help-comparing-array-data/177470)

<div class="topic-metadata">

**Author:** [@burrowsm](https://www.ruby-forum.com/u/burrowsm)\
**Replies:** 6\
**Last updated:** [October 19, 2009, 10:45am UTC](https://www.ruby-forum.com/t/need-help-comparing-array-data/177470 "2009-10-19T10:45:26Z")

</div>

Trying to write code for rock paper scissors game and read in two values from people playing. Take those values and determine the outcome. As I understand an array you are able to compare values with the \<=\> and I thi…

---

## [Couchdb perform like a pron star (ou l'on reparle du ghetto... :-)](https://www.ruby-forum.com/t/couchdb-perform-like-a-pron-star-ou-lon-reparle-du-ghetto/166602)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 28, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/couchdb-perform-like-a-pron-star-ou-lon-reparle-du-ghetto/166602 "2009-04-28T17:02:21Z")

</div>

Au vue des réactions de l’excellente présentation de matt Aimonetti (cela n’engage que moi) : Je ne résiste pas à lancer la discussion sur cette liste (au risque de fatiguer matt qui lit cette liste et à déjà du répo…

---

## [\[ANN\] Radiant CMS 0.6.2 - Jewel Carver Release (Minor Update](https://www.ruby-forum.com/t/ann-radiant-cms-0-6-2-jewel-carver-release-minor-update/168671)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 6\
**Last updated:** [July 2, 2007, 3:59pm UTC](https://www.ruby-forum.com/t/ann-radiant-cms-0-6-2-jewel-carver-release-minor-update/168671 "2007-07-02T15:59:55Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ This is a minor update in the 0.6 series. The primary benefit to it is that people using Sean Cribb’s Page Attachements extension ca…

---

## [Dynamic forms](https://www.ruby-forum.com/t/dynamic-forms/103437)

<div class="topic-metadata">

**Author:** [@chapaev](https://www.ruby-forum.com/u/chapaev)\
**Replies:** 6\
**Last updated:** [June 5, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/dynamic-forms/103437 "2007-06-05T13:58:35Z")

</div>

Hi everyone! I’m new to Rails and i am interesting in methods for developing dynamic forms. I’ll try to explain what i wanted to say. I’m making a web-application for Human Resource Management and there must be oppor…

---

## [Rails, JavaScript y Objeto Session](https://www.ruby-forum.com/t/rails-javascript-y-objeto-session/77491)

<div class="topic-metadata">

**Author:** [@DaVinci](https://www.ruby-forum.com/u/DaVinci)\
**Replies:** 6\
**Last updated:** [May 20, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/rails-javascript-y-objeto-session/77491 "2007-05-20T12:01:24Z")

</div>

Hola lista. De nuevo más problemillas a la hora de integrar Rails con Javascript. Me gustaría poder guardar una variable en Session, pero se trata de un valor que sólo puedo acceder mediante Javascript, de forma que …

---

## [Better looking directory chooser for tk?](https://www.ruby-forum.com/t/better-looking-directory-chooser-for-tk/176997)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [October 10, 2009, 11:11pm UTC](https://www.ruby-forum.com/t/better-looking-directory-chooser-for-tk/176997 "2009-10-10T23:11:30Z")

</div>

Currently in windows with Tk if I run Tk.chooseDirectory it gives me the cruddy “teeny windows” version that forces you to start at my computer to navigate through, and the window can’t be expanded, even. Anybody k…

---

## [Is there any way to package a Ruby Shoes app into an .exe File?](https://www.ruby-forum.com/t/is-there-any-way-to-package-a-ruby-shoes-app-into-an-exe-file/140696)

<div class="topic-metadata">

**Author:** [@ZippySwish](https://www.ruby-forum.com/u/ZippySwish)\
**Replies:** 2\
**Last updated:** [July 13, 2008, 10:35am UTC](https://www.ruby-forum.com/t/is-there-any-way-to-package-a-ruby-shoes-app-into-an-exe-file/140696 "2008-07-13T10:35:38Z")

</div>

It’s not really very redistributable if I have to tell people to install Ruby and Shoes first… I’ve seen the “.shy” files but couldn’t find any documentation on those either. TIA

---

## [Rails 1.0 Crashing: Errno::EPIPE (Broken pipe):](https://www.ruby-forum.com/t/rails-1-0-crashing-errno-epipe-broken-pipe/90382)

<div class="topic-metadata">

**Author:** [@phil\_swenson](https://www.ruby-forum.com/u/phil_swenson)\
**Replies:** 2\
**Last updated:** [April 3, 2006, 8:54pm UTC](https://www.ruby-forum.com/t/rails-1-0-crashing-errno-epipe-broken-pipe/90382 "2006-04-03T20:54:05Z")

</div>

Since we upgraded to Rails 1.0 and lighty last week we’ve had the rails application crash daily with the following error in the production.log file: Errno::EPIPE (Broken pipe): /usr/local/lib/ruby/1.8/mysql.rb:1042:i…

---

## [WIN32OLE - failed to create WIN32OLE](https://www.ruby-forum.com/t/win32ole-failed-to-create-win32ole/123665)

<div class="topic-metadata">

**Author:** [@zxem](https://www.ruby-forum.com/u/zxem)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/win32ole-failed-to-create-win32ole/123665 "2007-12-19T20:07:12Z")

</div>

I am trying to create a ruby class base on a Win32 COM typelib info. The class I tried to create is as followed. COM Type info: (There is no registry entry for this class) \[ uuid(0058FFFF-5B03-11D3-A520-00805F9BE596)…

---

## [Building a pdf with an existing pdf as watermark/background](https://www.ruby-forum.com/t/building-a-pdf-with-an-existing-pdf-as-watermark-background/70480)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 1\
**Last updated:** [September 29, 2006, 5:39pm UTC](https://www.ruby-forum.com/t/building-a-pdf-with-an-existing-pdf-as-watermark-background/70480 "2006-09-29T17:39:03Z")

</div>

I’m starting on a small rails app and i need to generate a report in pdf format. i’ve generated pdfs before using pdf::writer without much problems, but for this project the company sent me a pdf ‘watermark’ (or backg…

---

## [Question on using images on panels](https://www.ruby-forum.com/t/question-on-using-images-on-panels/182105)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 5\
**Last updated:** [January 22, 2010, 10:32pm UTC](https://www.ruby-forum.com/t/question-on-using-images-on-panels/182105 "2010-01-22T22:32:01Z")

</div>

I’m trying to place a simple logo on one of the panels within the center of my main gui. In DialogBlocks, the panel class is LogoPanel which when using xrcise to generate the ruby file from xrc, creates: @logo = find…

---

## [Array of hashes (finding value)](https://www.ruby-forum.com/t/array-of-hashes-finding-value/143073)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 5\
**Last updated:** [July 15, 2008, 12:14am UTC](https://www.ruby-forum.com/t/array-of-hashes-finding-value/143073 "2008-07-15T00:14:50Z")

</div>

I’m just looking for other possible solutions. Sorry, this is kinda a noob question. Currently I loop through the array and check the value of each hash key to find values. Is that the only and/or best way to find m…

---

## [Banner Ad Management in Ruby/Rails?](https://www.ruby-forum.com/t/banner-ad-management-in-ruby-rails/76710)

<div class="topic-metadata">

**Author:** [@superwick](https://www.ruby-forum.com/u/superwick)\
**Replies:** 5\
**Last updated:** [November 24, 2006, 4:16pm UTC](https://www.ruby-forum.com/t/banner-ad-management-in-ruby-rails/76710 "2006-11-24T16:16:07Z")

</div>

Hello, Does anyone know of a plugin or gem for banner ad rotation management? Something inthe vein of PhpAds. I’ve searched and searched and come up with nothing. I thought I’d check here before I “roll my own”. Any …

---

## [Strange question on file\_column](https://www.ruby-forum.com/t/strange-question-on-file-column/57963)

<div class="topic-metadata">

**Author:** [@charlie](https://www.ruby-forum.com/u/charlie)\
**Replies:** 5\
**Last updated:** [April 17, 2006, 7:27am UTC](https://www.ruby-forum.com/t/strange-question-on-file-column/57963 "2006-04-17T07:27:34Z")

</div>

I have met a very strange problem on file\_column usage. After I have added file\_column :image to the model,everything is ok. But after I added more: file\_column :image, :magick =\> {:versions =\> { :thumb =\> {:size =\>…

---

## [FFT Playback](https://www.ruby-forum.com/t/fft-playback/237857)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 8\
**Last updated:** [December 4, 2013, 3:57pm UTC](https://www.ruby-forum.com/t/fft-playback/237857 "2013-12-04T15:57:36Z")

</div>

When I play my data file back through a throttle and frequency translating FIR filter to an FFT sink with repeat OFF, it seems to just show a static plot. However, with repeat ON, I get playback, but I can’t tell whe…

---

## [I am confused with installing a gem](https://www.ruby-forum.com/t/i-am-confused-with-installing-a-gem/212053)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [September 22, 2011, 5:05pm UTC](https://www.ruby-forum.com/t/i-am-confused-with-installing-a-gem/212053 "2011-09-22T17:05:12Z")

</div>

Hi When I tried to install ‘sexp’ gem for first time (with this statement : ‘gem install sexp’ ) ruby gives me an error but when for second time I tried with the same statement ruby didn’t give me an error . Why ruby …

---

## [Unnecessary queries](https://www.ruby-forum.com/t/unnecessary-queries/174153)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 8\
**Last updated:** [August 21, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/unnecessary-queries/174153 "2009-08-21T21:12:16Z")

</div>

Hi, I have managed to create a table that includes many nested sets. I have a problem with it though. I can retrieve one set by getting its root element and then do something like: @attributes = root\_attribute.self\_a…

---

## [Passing block in C](https://www.ruby-forum.com/t/passing-block-in-c/164178)

<div class="topic-metadata">

**Author:** [@peterz](https://www.ruby-forum.com/u/peterz)\
**Replies:** 8\
**Last updated:** [March 29, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/passing-block-in-c/164178 "2009-03-29T20:57:51Z")

</div>

Hi. How can I call Ruby function from C with block? E. g. VALUE block = rb\_proc\_new(…); rb\_funcall\_with\_block(cMyClass, rb\_intern(“initialize”), 0, block); WBR, Peter Z.

---

## [Advantages of Rails over .NET for web](https://www.ruby-forum.com/t/advantages-of-rails-over-net-for-web/116781)

<div class="topic-metadata">

**Author:** [@jimmyz](https://www.ruby-forum.com/u/jimmyz)\
**Replies:** 8\
**Last updated:** [October 11, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/advantages-of-rails-over-net-for-web/116781 "2007-10-11T19:16:37Z")

</div>

I don’t want to incite a religious war here. I’m looking for case studies and good arguments for using Rails for a large corporate website rather than using .NET. Most of the arguments I see are about Rails vs php or …

---

## [Bugs/limitations des Migrations avec MySQL (ou d'autres SGBD](https://www.ruby-forum.com/t/bugs-limitations-des-migrations-avec-mysql-ou-dautres-sgbd/112041)

<div class="topic-metadata">

**Author:** [@Farzad\_FARID](https://www.ruby-forum.com/u/Farzad_FARID)\
**Replies:** 8\
**Last updated:** [August 21, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/bugs-limitations-des-migrations-avec-mysql-ou-dautres-sgbd/112041 "2007-08-21T22:07:49Z")

</div>

Bonjour, Je suis en train de travailler sur mon premier projet Rails, et je suis dÃ©jÃ agacÃ© par des bugs ou limitations des migrations que je rencontre avec MySQL. Je voulais savoir si vous rencontrez aussi ces sou…

---

## [Lire un fichier =\> can't convert StringIO into String](https://www.ruby-forum.com/t/lire-un-fichier-cant-convert-stringio-into-string/77344)

<div class="topic-metadata">

**Author:** [@Bolo\_M](https://www.ruby-forum.com/u/Bolo_M)\
**Replies:** 8\
**Last updated:** [November 27, 2006, 4:11pm UTC](https://www.ruby-forum.com/t/lire-un-fichier-cant-convert-stringio-into-string/77344 "2006-11-27T16:11:58Z")

</div>

Bonjour, J’essaye de lire le contenu d’un fichier \<%= form\_tag (enseignements\_path, :multipart =\> true ) %\> \<%= file\_field ‘document’, ‘file’ %\> \<%= submit\_tag ‘Import’ %\> \<%= end\_form\_tag %\> mon code def create …

---

## [Password, hashed\_password and validation](https://www.ruby-forum.com/t/password-hashed-password-and-validation/65796)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 21, 2006, 5:37pm UTC](https://www.ruby-forum.com/t/password-hashed-password-and-validation/65796 "2006-08-21T17:37:43Z")

</div>

(Oringinally posted with several other titles with no response…maybe third time is the charm!) I’m using a virtual attribute for password in my user model and a hashed\_password field for the persisted hashed value (a …

---

## [STI, subclasses and callbacks](https://www.ruby-forum.com/t/sti-subclasses-and-callbacks/54346)

<div class="topic-metadata">

**Author:** [@marcus](https://www.ruby-forum.com/u/marcus)\
**Replies:** 4\
**Last updated:** [March 2, 2006, 1:13am UTC](https://www.ruby-forum.com/t/sti-subclasses-and-callbacks/54346 "2006-03-02T01:13:18Z")

</div>

I have a STI class tree. I want to set some default values (calculated values so I can’t set it in the database as defaults) on every created instance regardless of what subclass is actually instantiated. So I figured…

---

## [How to add values to a python array?](https://www.ruby-forum.com/t/how-to-add-values-to-a-python-array/260655)

<div class="topic-metadata">

**Author:** [@richards12](https://www.ruby-forum.com/u/richards12)\
**Replies:** 1\
**Last updated:** [December 20, 2020, 3:58pm UTC](https://www.ruby-forum.com/t/how-to-add-values-to-a-python-array/260655 "2020-12-20T15:58:25Z")

</div>

i want to know how to add values to a python array

---

## [Has\_many :through - additional attribute](https://www.ruby-forum.com/t/has-many-through-additional-attribute/199657)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 7\
**Last updated:** [December 2, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/has-many-through-additional-attribute/199657 "2010-12-02T23:13:34Z")

</div>

Hi, I’m wondering how to write or read an additional attribute in the through table. Beside the foreign key, I have in the ‘Responsible’ table an additional data field ‘type’ to set the kind of ‘responsibility’ for t…

---

## [Image Files](https://www.ruby-forum.com/t/image-files/173799)

<div class="topic-metadata">

**Author:** [@shusseina](https://www.ruby-forum.com/u/shusseina)\
**Replies:** 7\
**Last updated:** [August 17, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/image-files/173799 "2009-08-17T17:30:50Z")

</div>

I’m a Rails newby and I’m in the process of creating my first Rails app - a knock-off of IMDb, albeit a ‘nano’ version of it. When displaying the details of a movie I would like to show the movie’s (DVD) cover art. H…

---

## [OT - una de expresiones regulares](https://www.ruby-forum.com/t/ot-una-de-expresiones-regulares/149983)

<div class="topic-metadata">

**Author:** [@miguel](https://www.ruby-forum.com/u/miguel)\
**Replies:** 7\
**Last updated:** [October 2, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/ot-una-de-expresiones-regulares/149983 "2008-10-02T16:49:35Z")

</div>

Hola Expertos, tengo una pequeÃ±a duda con expresiones regulares, estoy haciendo un proyecto en Rails donde necesito limpiar un cÃ³digo html de caracteres que no sean letras , pero exceptuando los ; y los &, ya que …

---

## [File\_put\_contents analog?](https://www.ruby-forum.com/t/file-put-contents-analog/72062)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 1\
**Last updated:** [October 13, 2006, 10:33pm UTC](https://www.ruby-forum.com/t/file-put-contents-analog/72062 "2006-10-13T22:33:40Z")

</div>

PHP has a function file\_put\_contents(file, stuff) – is there any similar single command in Ruby? Thanks, Joe

---

## [Generic SingleTable inheritance](https://www.ruby-forum.com/t/generic-singletable-inheritance/96839)

<div class="topic-metadata">

**Author:** [@clemens](https://www.ruby-forum.com/u/clemens)\
**Replies:** 7\
**Last updated:** [July 3, 2006, 12:27am UTC](https://www.ruby-forum.com/t/generic-singletable-inheritance/96839 "2006-07-03T00:27:50Z")

</div>

Hi all, I would like to discuss a design idea I have in mind with you, in order to get critical feedback. ActiveRecord supports single table inheritance(STI) “per se”, BUT you must add all possible instance variables…

---

## [Implementing Optimistic Offline Lock - How?](https://www.ruby-forum.com/t/implementing-optimistic-offline-lock-how/57487)

<div class="topic-metadata">

**Author:** [@gkogler](https://www.ruby-forum.com/u/gkogler)\
**Replies:** 1\
**Last updated:** [April 11, 2006, 5:47pm UTC](https://www.ruby-forum.com/t/implementing-optimistic-offline-lock-how/57487 "2006-04-11T17:47:28Z")

</div>

I understand that ActiveRecord supports the “optimistic offline lock”-pattern through magic fields (created\_at, updated\_at). However, a scaffolded CRUD-Controller doesn’t generate the necessary code to support this fe…

---

## [AttributeError: 'function' object has no attribute 'to\_basic\_block' (GR 3.7.0)](https://www.ruby-forum.com/t/attributeerror-function-object-has-no-attribute-to-basic-block-gr-3-7-0/245765)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 13, 2013, 12:12am UTC](https://www.ruby-forum.com/t/attributeerror-function-object-has-no-attribute-to-basic-block-gr-3-7-0/245765 "2013-07-13T00:12:35Z")

</div>

I’ve stepped up to GR 3.7.0, re-used gr\_modtool to freshly re-create my OOT module, everything builds, tests, installs OK. GRC has my OOT blocks listed and I can put them on my flowgraph. One of my OOT blocks is a fun…

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

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