# Top

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

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

---

## [File-column plugin file size validation?](https://www.ruby-forum.com/t/file-column-plugin-file-size-validation/76360)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 5\
**Last updated:** [February 4, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/file-column-plugin-file-size-validation/76360 "2008-02-04T17:39:14Z")

</div>

Anyone had success with this? i tried this: validate :check\_file\_size def check\_file\_size if @picture and @picture.size \> 50000 errors.add(‘picture’, ‘too big’) end end def picture @picture end def picture=(picture) …

---

## [Newbie question - how to use multiple source files](https://www.ruby-forum.com/t/newbie-question-how-to-use-multiple-source-files/124592)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 5\
**Last updated:** [December 30, 2007, 11:22pm UTC](https://www.ruby-forum.com/t/newbie-question-how-to-use-multiple-source-files/124592 "2007-12-30T23:22:55Z")

</div>

I’m coming from Java, and am trying to understand how to break upo code into more than one file. So in this example, I have one class in the first file, another in the second file, and I want to create an object from…

---

## [Quel flash pour les validates\_\*?](https://www.ruby-forum.com/t/quel-flash-pour-les-validates/117846)

<div class="topic-metadata">

**Author:** [@gbenoit79](https://www.ruby-forum.com/u/gbenoit79)\
**Replies:** 5\
**Last updated:** [October 21, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/quel-flash-pour-les-validates/117846 "2007-10-21T18:19:15Z")

</div>

Bonjour, J’ai un zoli CSS dans lequel je crÃ©e une boi-boite pour y mettre le flash\[:notice\]. Tout se passe bien, j’ai bien mes messages flash (par exemple les infos de connexion et de deconnexion de l’utilisateur) qu…

---

## [How do I assign default values to model attribute](https://www.ruby-forum.com/t/how-do-i-assign-default-values-to-model-attribute/112990)

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 5\
**Last updated:** [August 26, 2007, 11:23am UTC](https://www.ruby-forum.com/t/how-do-i-assign-default-values-to-model-attribute/112990 "2007-08-26T11:23:07Z")

</div>

I have a model with a attribute named “code”. Every time i create an instance I want the “code” to be initialized by making a call to “generate\_code” method. How do i initialize model attributes in rails ?? thanks for…

---

## [One Application, Multiple Domains.. separate data?](https://www.ruby-forum.com/t/one-application-multiple-domains-separate-data/111765)

<div class="topic-metadata">

**Author:** [@unreal](https://www.ruby-forum.com/u/unreal)\
**Replies:** 5\
**Last updated:** [August 10, 2007, 7:50pm UTC](https://www.ruby-forum.com/t/one-application-multiple-domains-separate-data/111765 "2007-08-10T19:50:09Z")

</div>

Hi, I am developing a sort of CMS application that will be used by multiple domains on my host. Each domain requires its own set of users, news, etc., but I would like to keep my application only installed one place …

---

## [Regexp not matched](https://www.ruby-forum.com/t/regexp-not-matched/107978)

<div class="topic-metadata">

**Author:** [@th8254](https://www.ruby-forum.com/u/th8254)\
**Replies:** 5\
**Last updated:** [July 2, 2007, 2:33am UTC](https://www.ruby-forum.com/t/regexp-not-matched/107978 "2007-07-02T02:33:34Z")

</div>

Sorry, meant to post this in the rails forum. Anyways, how would I write a rescue method to recover from a failed regexp parsing with error “regexp not matched” -Thanks

---

## [Getting non-stemmed terms from IndexReader](https://www.ruby-forum.com/t/getting-non-stemmed-terms-from-indexreader/87612)

<div class="topic-metadata">

**Author:** [@ted](https://www.ruby-forum.com/u/ted)\
**Replies:** 5\
**Last updated:** [March 6, 2007, 9:24am UTC](https://www.ruby-forum.com/t/getting-non-stemmed-terms-from-indexreader/87612 "2007-03-06T09:24:05Z")

</div>

I need to get a set of terms being indexed using Ferret. I used IndexReader.terms and it returns a list of TermEnum nicely. The only problem is that my analyzer includes a stemming filter. So now, the terms I’m gettin…

---

## [Now what](https://www.ruby-forum.com/t/now-what/93397)

<div class="topic-metadata">

**Author:** [@shadow](https://www.ruby-forum.com/u/shadow)\
**Replies:** 5\
**Last updated:** [April 1, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/now-what/93397 "2006-04-01T18:55:56Z")

</div>

I’ve gotten through the Programming Ruby book and I have good idea of how Ruby works; but I am stuck with what to do next. I mean, I know I have to learn Ruby before I get into Rails (i.e. Ruby is the engine of the c…

---

## [SSL and domain as account key](https://www.ruby-forum.com/t/ssl-and-domain-as-account-key/53767)

<div class="topic-metadata">

**Author:** [@krisleech](https://www.ruby-forum.com/u/krisleech)\
**Replies:** 5\
**Last updated:** [February 14, 2006, 3:48pm UTC](https://www.ruby-forum.com/t/ssl-and-domain-as-account-key/53767 "2006-02-14T15:48:27Z")

</div>

Say I have an hosted application which allows the user to use their own domain name (company.com) to access it, and that application must be accessed over SSL, how do you go about our SSL certificate not being registe…

---

## [Comment les listes inversées de téléphones portables vous donnent beaucoup d'informations personnelles sur un propriétaire de téléphone portable](https://www.ruby-forum.com/t/comment-les-listes-inversees-de-telephones-portables-vous-donnent-beaucoup-dinformations-personnelles-sur-un-proprietaire-de-telephone-portable/261436)

<div class="topic-metadata">

**Author:** [@Tanmoy45](https://www.ruby-forum.com/u/Tanmoy45)\
**Replies:** 0\
**Last updated:** [June 22, 2021, 5:16am UTC](https://www.ruby-forum.com/t/comment-les-listes-inversees-de-telephones-portables-vous-donnent-beaucoup-dinformations-personnelles-sur-un-proprietaire-de-telephone-portable/261436 "2021-06-22T05:16:28Z")

</div>

This subscription fee is deducted and recorded. Liste de numéros de téléphone One must agree to the terms on agreement so is to forbid illegal use of databases. Liste de numéros de téléphone Once you pay the subscription…

---

## [Entities and spacing: (em|en)dash and arrow](https://www.ruby-forum.com/t/entities-and-spacing-em-en-dash-and-arrow/125007)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 3:34pm UTC](https://www.ruby-forum.com/t/entities-and-spacing-em-en-dash-and-arrow/125007 "2008-01-04T15:34:40Z")

</div>

Hello, I notice that these entities are defined like this: def emdash opts “—” end def endash opts “–” end def arrow opts “→” end However, any space from the original markup is stripped, so “hello – world” b…

---

## [Gr\_buffer::allocate\_buffer: warning and USRP tx underflow](https://www.ruby-forum.com/t/gr-buffer-warning-and-usrp-tx-underflow/239598)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [March 6, 2014, 4:53pm UTC](https://www.ruby-forum.com/t/gr-buffer-warning-and-usrp-tx-underflow/239598 "2014-03-06T16:53:01Z")

</div>

Hi, My gnuradio flow graph has a custom block taking input from multiple USRP’s and the output of the block is connected to a USRP transmitter. My applications demands a sample rate of at least 5Msps and up to 10Msp…

---

## [Re: Non-Java Related jRuby GUI Builder](https://www.ruby-forum.com/t/re-non-java-related-jruby-gui-builder/228964)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 1\
**Last updated:** [May 14, 2013, 10:40pm UTC](https://www.ruby-forum.com/t/re-non-java-related-jruby-gui-builder/228964 "2013-05-14T22:40:23Z")

</div>

I’ve actually spent a great deal of time researching this question: how does one build a GUI app with Ruby? To answer your question here, there are basically two roads, in MRI (that’s Matz’s Ruby Implementation, the …

---

## [How to deploy application on linux](https://www.ruby-forum.com/t/how-to-deploy-application-on-linux/212745)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 22, 2012, 1:40pm UTC](https://www.ruby-forum.com/t/how-to-deploy-application-on-linux/212745 "2012-08-22T13:40:32Z")

</div>

Hi, I am new in ruby. I developed a small application in ruby on rails on windows and used default server webrick. Now I want to deploy on my linux machine. How to configure all? What should I do for that? Which are…

---

## [PDFKit javascript issues](https://www.ruby-forum.com/t/pdfkit-javascript-issues/203739)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 26, 2011, 11:56am UTC](https://www.ruby-forum.com/t/pdfkit-javascript-issues/203739 "2011-02-26T11:56:21Z")

</div>

I also posted this on stackoverflow so apologises for cross posting but I think this is probably a better home for this post. I have been looking into using PDFKit to generate pdf reports for a Rail 3 app I’m working …

---

## [Programmatically creating pages](https://www.ruby-forum.com/t/programmatically-creating-pages/200349)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [December 9, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/programmatically-creating-pages/200349 "2010-12-09T18:16:44Z")

</div>

In reference to my previous post - as I’m importing content into Radiant from Wordpress, how do I go about setting the created\_by to a user? Every time I set the value, it’s always NULL that ends up in the table (alth…

---

## [Patches for matching opening and closing inline modifiers](https://www.ruby-forum.com/t/patches-for-matching-opening-and-closing-inline-modifiers/167310)

<div class="topic-metadata">

**Author:** [@Tyson\_W](https://www.ruby-forum.com/u/Tyson_W)\
**Replies:** 1\
**Last updated:** [May 7, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/patches-for-matching-opening-and-closing-inline-modifiers/167310 "2009-05-07T14:40:06Z")

</div>

I put together some patches to fix issues with pairing up opening and closing inline modifiers. The new behaviour requires the closing modifier to be followed by white space (optionally separated by punctuation). Th…

---

## [Could not find RubyGem columnize](https://www.ruby-forum.com/t/could-not-find-rubygem-columnize/139207)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 1, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/could-not-find-rubygem-columnize/139207 "2008-06-01T23:28:49Z")

</div>

Hi! Upon updating to rails 2.1 ( sudo gem update) I now get this error when running tests: /Library/Ruby/Site/1.8/rubygems.rb:523:in report\_activate\_error': Could not find RubyGem columnize (\>= 0.1) (Gem::LoadError) …

---

## [String & Symbol in same hash](https://www.ruby-forum.com/t/string-symbol-in-same-hash/233751)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [January 21, 2015, 10:01pm UTC](https://www.ruby-forum.com/t/string-symbol-in-same-hash/233751 "2015-01-21T22:01:23Z")

</div>

Hey, all. Is it possible to have a string in and symbol in the same hash? my\_hash { “one” =\> “1”, two: 2 } Thank you!

---

## [Elegant way to rename a file with an user-supplied expression?](https://www.ruby-forum.com/t/elegant-way-to-rename-a-file-with-an-user-supplied-expression/232381)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [October 9, 2014, 12:56pm UTC](https://www.ruby-forum.com/t/elegant-way-to-rename-a-file-with-an-user-supplied-expression/232381 "2014-10-09T12:56:47Z")

</div>

Hi. I’m creating a small Ruby program to do some chores that I used to do with different programs coupled together and shell scripts. I’m doing it mostly to learn more Ruby (I’m still a beginner), so if in the end I…

---

## [Gr-ctrlport-monitor timeout exception](https://www.ruby-forum.com/t/gr-ctrlport-monitor-timeout-exception/237409)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [December 3, 2013, 9:25pm UTC](https://www.ruby-forum.com/t/gr-ctrlport-monitor-timeout-exception/237409 "2013-12-03T21:25:48Z")

</div>

I’m using ControlPort to monitor transmissions through a USRP. I have a flowgraph responsible for generating burst traffic and streaming to a uhd\_sink. Then I have a uhd\_source tuned to the same frequency as the uhd\_s…

---

## [Rdoc fail encoding iso-8859-1](https://www.ruby-forum.com/t/rdoc-fail-encoding-iso-8859-1/236703)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [September 26, 2013, 10:15pm UTC](https://www.ruby-forum.com/t/rdoc-fail-encoding-iso-8859-1/236703 "2013-09-26T22:15:54Z")

</div>

Hi all, I’m quite new to ruby, so forgive me if this is a dumb question. I’m trying to generate RDoc documentation for my current project and I receive this error: #rdoc tesi/ --main tesi/INDEX.rdoc --op doc2http --…

---

## [Usage of ram for Sunspot Search engine](https://www.ruby-forum.com/t/usage-of-ram-for-sunspot-search-engine/229335)

<div class="topic-metadata">

**Author:** [@keerthi\_priya](https://www.ruby-forum.com/u/keerthi_priya)\
**Replies:** 4\
**Last updated:** [January 28, 2013, 5:57am UTC](https://www.ruby-forum.com/t/usage-of-ram-for-sunspot-search-engine/229335 "2013-01-28T05:57:39Z")

</div>

Hi all, I am using Sunspot Search Engine in my app. When I deployed my app in production It it bit slower side. My Server Details: ram 256 Ubuntu 11.10 How can I check why my app is slow in production can any one h…

---

## [Problems following this tutorial](https://www.ruby-forum.com/t/problems-following-this-tutorial/222631)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [September 4, 2012, 10:33pm UTC](https://www.ruby-forum.com/t/problems-following-this-tutorial/222631 "2012-09-04T22:33:33Z")

</div>

Hello, I try to follow this tutorial : But when I do rails generate controller home index I get this output : Usage : rails new APP\_PATH \[options\] I have Ruby version 1.9.3 Roelof

---

## [Testing javascript-heavy websites](https://www.ruby-forum.com/t/testing-javascript-heavy-websites/158420)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 4\
**Last updated:** [January 23, 2009, 4:34am UTC](https://www.ruby-forum.com/t/testing-javascript-heavy-websites/158420 "2009-01-23T04:34:26Z")

</div>

We’re starting to work on some javascript-heavy websites, and even some flash/flex based ones as well. What’s the current hotness in automatically testing those types of websites? Does cucumber hook up to selenium no…

---

## [Mensajes Error Rails](https://www.ruby-forum.com/t/mensajes-error-rails/154129)

<div class="topic-metadata">

**Author:** [@avenasatira](https://www.ruby-forum.com/u/avenasatira)\
**Replies:** 4\
**Last updated:** [November 25, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/mensajes-error-rails/154129 "2008-11-25T19:34:01Z")

</div>

Existe alguna forma de utilizar un archivo de propiedades algo parecido a lo que se utiliza en java, lo que pasa es que dependiendo del numero de error que ocurra en mi aplicacion quiero que aparezca un mensaje. graci…

---

## [15 minute blog tutorial](https://www.ruby-forum.com/t/15-minute-blog-tutorial/143938)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 4\
**Last updated:** [July 25, 2008, 6:00am UTC](https://www.ruby-forum.com/t/15-minute-blog-tutorial/143938 "2008-07-25T06:00:08Z")

</div>

Ever since Rails 2.0 has come out, the 15 minute tutorial on the site that is so popular is broken. How about we rally up the community to replace this with a proper tutorial that isn’t broken? Many people would’ve tr…

---

## [RSpec'ing model association callbacks](https://www.ruby-forum.com/t/rspecing-model-association-callbacks/132140)

<div class="topic-metadata">

**Author:** [@roberto\_belardo](https://www.ruby-forum.com/u/roberto_belardo)\
**Replies:** 4\
**Last updated:** [March 17, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/rspecing-model-association-callbacks/132140 "2008-03-17T12:31:33Z")

</div>

Hi all, i’m learning rspec and i must admit i really love it. But at the time i started learning it, i already developed my models classes and their callbacks. Now i’m trying to get a 100% coverage of my code but i …

---

## [Using object.find() in a loop not returning an array](https://www.ruby-forum.com/t/using-object-find-in-a-loop-not-returning-an-array/127072)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 4\
**Last updated:** [January 24, 2008, 8:06pm UTC](https://www.ruby-forum.com/t/using-object-find-in-a-loop-not-returning-an-array/127072 "2008-01-24T20:06:02Z")

</div>

I’m running a loop (illustrated below) that retrieves records from a table based on an id that might be different with each iteration. The loop uses the array scrns (composed of IDs) to find the related records in th…

---

## [Herramientas](https://www.ruby-forum.com/t/herramientas/122882)

<div class="topic-metadata">

**Author:** [@fesplugas](https://www.ruby-forum.com/u/fesplugas)\
**Replies:** 4\
**Last updated:** [December 12, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/herramientas/122882 "2007-12-12T19:37:16Z")

</div>

Quizas hay lectores de la lista interesados en como trabajan otras personas con RoR. Cada uno tiene sus truquillos que pueden servir a otros a hacer la vida más fàcil a la hora de desarrollar. Aquí va mi “entorno” de …

---

## [RMagick and ugly error](https://www.ruby-forum.com/t/rmagick-and-ugly-error/93000)

<div class="topic-metadata">

**Author:** [@flip](https://www.ruby-forum.com/u/flip)\
**Replies:** 4\
**Last updated:** [April 26, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/rmagick-and-ugly-error/93000 "2007-04-26T19:24:55Z")

</div>

Not sure if this is the right place to ask this but I know allot of you are using either scruffy or gruff to generate graphs. I am running on a macbook pro with macports of ruby 1.8.5 rails edge imagemagick rmagick an…

---

## [RV: Filtrar con Ajax Scaffold](https://www.ruby-forum.com/t/rv-filtrar-con-ajax-scaffold/88215)

<div class="topic-metadata">

**Author:** [@Fernando\_GonzSSSSle](https://www.ruby-forum.com/u/Fernando_GonzSSSSle)\
**Replies:** 4\
**Last updated:** [March 12, 2007, 11:34am UTC](https://www.ruby-forum.com/t/rv-filtrar-con-ajax-scaffold/88215 "2007-03-12T11:34:09Z")

</div>

Hola Luis. He estado un par de dÃ­as liado con otro tema. Volvemos al ataque. Efectivamente el controlador se llama prÃ©stamos y la funciÃ³n se llama actualizaCapaPrestamos(). Te pasÃ© el cÃ³digo que me enviaste tÃº …

---

## [Combining two arrays](https://www.ruby-forum.com/t/combining-two-arrays/69684)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 4\
**Last updated:** [September 23, 2006, 4:10am UTC](https://www.ruby-forum.com/t/combining-two-arrays/69684 "2006-09-23T04:10:51Z")

</div>

Hi, I have two arrays: one that contains ids and data values and one that contains ids and names. There is a relationship between the ids in the two arrays. How do I create a third array that contains names and dat…

---

## [Regex for whitespace plus vertical bar](https://www.ruby-forum.com/t/regex-for-whitespace-plus-vertical-bar/100445)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 4\
**Last updated:** [July 28, 2006, 11:10pm UTC](https://www.ruby-forum.com/t/regex-for-whitespace-plus-vertical-bar/100445 "2006-07-28T23:10:59Z")

</div>

I am trying to quote arguments that have whitespace or a pipe (vertical bar character = | ) in them. Why doesn’t this work? What does work? if arg.index(/\[\\s|\]/) … end

---

## [Congratulations on 4.0.0 Release](https://www.ruby-forum.com/t/congratulations-on-4-0-0-release/99818)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 4\
**Last updated:** [July 25, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/congratulations-on-4-0-0-release/99818 "2006-07-25T22:22:26Z")

</div>

re: Typo 4.0.0 :: scottstuff.net Congratulations to Scott, Piers, Kevin and everyone else involved in the 4.0.0 Typo release. I see its been blogged about but I didn’t see an \[ANN\]ouncement on this list or the Rails l…

---

## [RJS Form Values](https://www.ruby-forum.com/t/rjs-form-values/96234)

<div class="topic-metadata">

**Author:** [@hamza](https://www.ruby-forum.com/u/hamza)\
**Replies:** 4\
**Last updated:** [June 27, 2006, 6:05pm UTC](https://www.ruby-forum.com/t/rjs-form-values/96234 "2006-06-27T18:05:14Z")

</div>

Hi, I have the following code : \<%=link\_to\_function(“ä¸­ | China”, update\_page{|page| page\[‘tags\_en’\].value = “China” page\[‘tags\_ch’\].value = “ä¸­” }) %\> This updates two text fields with the China and ä¸­. However…

---

## [Re: Problem in using trellis Error, correction en- and decoder](https://www.ruby-forum.com/t/re-problem-in-using-trellis-error-correction-en-and-decoder/198715)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [April 28, 2014, 2:55pm UTC](https://www.ruby-forum.com/t/re-problem-in-using-trellis-error-correction-en-and-decoder/198715 "2014-04-28T14:55:16Z")

</div>

in the past Achilleas wrote:------- There are a couple of potential problems with your flowgraph: the trellis encoder outputs unpacked bytes. For example, if your FSM has output cardinality 4 then it outputs 2 usefu…

---

## [Why lambda#arity always one complements of Proc#arity?](https://www.ruby-forum.com/t/why-lambda-arity-always-one-complements-of-proc-arity/239069)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [February 11, 2014, 1:07am UTC](https://www.ruby-forum.com/t/why-lambda-arity-always-one-complements-of-proc-arity/239069 "2014-02-11T01:07:09Z")

</div>

I was reading the official docs Class: Proc (Ruby 2.1.0). Where lambda#arity calculstion made me confused. Then from ruby - Proc.arity vs Lambda.arity - Stack Overflow I got some clue that lambda#arity always one com…

---

## [Easier way to get started](https://www.ruby-forum.com/t/easier-way-to-get-started/238872)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [February 2, 2014, 2:54pm UTC](https://www.ruby-forum.com/t/easier-way-to-get-started/238872 "2014-02-02T14:54:09Z")

</div>

When I look on the JRuby website at the instructions for installing JRuby it seems to me that a big opportunity is being missed to take advantage of the capabilities of the JVM by presenting JRuby as a single simple-t…

---

## [Need help to understand when should Kernel#Hash return empty hash](https://www.ruby-forum.com/t/need-help-to-understand-when-should-kernel-hash-return-empty-hash/236308)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [August 24, 2013, 7:13pm UTC](https://www.ruby-forum.com/t/need-help-to-understand-when-should-kernel-hash-return-empty-hash/236308 "2013-08-24T19:13:39Z")

</div>

Question #1 :- As per the documentation of Kernel#Hash (Module: Kernel (Ruby 2.0.0)) Returns an empty Hash when arg is nil or \[\]. RUBY\_VERSION # =\> “2.0.0” Hash\[\[“class”, “foo”\]\] # =\> {} What happened with the bel…

---

## [Gnomecanvas2 CanvasPolygon error in ruby 1.9](https://www.ruby-forum.com/t/gnomecanvas2-canvaspolygon-error-in-ruby-1-9/224274)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 7, 2012, 12:30am UTC](https://www.ruby-forum.com/t/gnomecanvas2-canvaspolygon-error-in-ruby-1-9/224274 "2012-11-07T00:30:51Z")

</div>

Hi, i am stuck with a weird error with gnomecanvas please see the example below (I know it’s deprecated, but goocanvas binding is missing methods). The code is working well with ruby 1.8 but in ruby 1.9 i got the err…

---

## [Validates\_format\_of :message not working, validates\_length\_of :message is working](https://www.ruby-forum.com/t/validates-format-of-message-not-working-validates-length-of-message-is-working/222144)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [August 14, 2012, 3:26pm UTC](https://www.ruby-forum.com/t/validates-format-of-message-not-working-validates-length-of-message-is-working/222144 "2012-08-14T15:26:22Z")

</div>

I’m using validates\_format\_of and the validation I want to do works, but I can’t get an error message to be displayed if the data is invalid: validates\_format\_of :mobile, :with =\> /\\A\[+0-9\]+\\Z/, :message =\> " - Wrong…

---

## [How to set up a has\_many :through association with Ultrasphinx](https://www.ruby-forum.com/t/how-to-set-up-a-has-many-through-association-with-ultrasphinx/160933)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 3\
**Last updated:** [December 3, 2010, 3:04pm UTC](https://www.ruby-forum.com/t/how-to-set-up-a-has-many-through-association-with-ultrasphinx/160933 "2010-12-03T15:04:11Z")

</div>

I’m using the Ultrasphinx plugin with Sphinx to add search to my app, but I’m having a tough time figuring out how to index a has\_many :through relationship. Say, for example, I’m looking at a relationship like this: …

---

## [Spec::Mocks::MockExpectationError](https://www.ruby-forum.com/t/spec-mockexpectationerror/199566)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 25, 2010, 2:01pm UTC](https://www.ruby-forum.com/t/spec-mockexpectationerror/199566 "2010-11-25T14:01:46Z")

</div>

hii I am initial level of rspec.I am getting a error nil class. My Controller code is as follows class UsersController \< ApplicationController before\_filter :have\_hard\_drive? # filter check for authorized user to ac…

---

## [Cookies werden nicht gespeichert](https://www.ruby-forum.com/t/cookies-werden-nicht-gespeichert/153515)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 3\
**Last updated:** [November 18, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/cookies-werden-nicht-gespeichert/153515 "2008-11-18T14:56:23Z")

</div>

Hi, ich entwickel gerade eine eine RubyOnRails Webseite mit Ruby 1.8 und Rails 2.0.2. Ich erstelle an der einen Stelle ein Product object und speicher es in ein Cookie Code: def create @image = Image.new(params\[:i…

---

## [Array\_including()](https://www.ruby-forum.com/t/array-including/147026)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 3\
**Last updated:** [August 27, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/array-including/147026 "2008-08-27T18:53:56Z")

</div>

I found myself having to write this today: class ArrayMatcher def initialize(array\_to\_match) @array\_to\_match = array\_to\_match end def ==(other) ok = true @array\_to\_match.each do |item| ok = ok and other.inclu…

---

## [Pessimistic locking](https://www.ruby-forum.com/t/pessimistic-locking/146101)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 3\
**Last updated:** [August 18, 2008, 4:57am UTC](https://www.ruby-forum.com/t/pessimistic-locking/146101 "2008-08-18T04:57:26Z")

</div>

Hey, I’ve been trying to figure out how to use pessimistic locking. So far I’ve found this: table.transaction do row = table.find(:first, :lock=\>true) row.col = blah row.save! end I’m not that familiar with SQL o…

---

## [Mysql port = rails port? localhost 3000](https://www.ruby-forum.com/t/mysql-port-rails-port-localhost-3000/135638)

<div class="topic-metadata">

**Author:** [@globalrev](https://www.ruby-forum.com/u/globalrev)\
**Replies:** 3\
**Last updated:** [April 24, 2008, 5:26am UTC](https://www.ruby-forum.com/t/mysql-port-rails-port-localhost-3000/135638 "2008-04-24T05:26:50Z")

</div>

i get mysql.dll error something. the port i use in mysql, does it have to be the same as in Ruby? in Ruby the standard is 3000. what is better to change if i need to change something? other programing languages use p…

---

## [SSL on Rails questions](https://www.ruby-forum.com/t/ssl-on-rails-questions/87187)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/ssl-on-rails-questions/87187 "2007-09-25T23:08:03Z")

</div>

Greetings! Please forgive the cross post. This is my first experience with implementing SSL, so I’m not even sure if this is an application development or deployment issue. I hope you’ll forgive the “stupid newbie”…

---

## [See raw xml in soap4r](https://www.ruby-forum.com/t/see-raw-xml-in-soap4r/109981)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 3\
**Last updated:** [July 26, 2007, 11:43am UTC](https://www.ruby-forum.com/t/see-raw-xml-in-soap4r/109981 "2007-07-26T11:43:22Z")

</div>

Hi, Is there any way with soap4r to see the raw xml of the response without turning on the debug mode? For me at least, my soap scripts work correctly 99% of the time, however occasionally they raise exceptions and i…

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

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