# Top

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

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

---

## [Ok, lightTPD is installed... how do i use it](https://www.ruby-forum.com/t/ok-lighttpd-is-installed-how-do-i-use-it/97254)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 5\
**Last updated:** [July 7, 2006, 1:23am UTC](https://www.ruby-forum.com/t/ok-lighttpd-is-installed-how-do-i-use-it/97254 "2006-07-07T01:23:04Z")

</div>

i used the hivelogic article to install ruby on rails to my mac: everything works great using the script/server command, but isn’t that still using WEBrick? how do i server my apps with lightTPD? i tried following th…

---

## [HABTM - how to insert join row when associated rows exist](https://www.ruby-forum.com/t/habtm-how-to-insert-join-row-when-associated-rows-exist/59170)

<div class="topic-metadata">

**Author:** [@Lindsay\_B](https://www.ruby-forum.com/u/Lindsay_B)\
**Replies:** 5\
**Last updated:** [April 30, 2006, 11:41am UTC](https://www.ruby-forum.com/t/habtm-how-to-insert-join-row-when-associated-rows-exist/59170 "2006-04-30T11:41:58Z")

</div>

I have successfully used HABTM to create a many-to-one-to-many set of rows in one step. Now, if two objects I want to associate already exist, how do I create the join row? The Agile book mentions the ‘push\_with\_attri…

---

## [Undefined method \`extend' for class \`ActiveRecord::Associations::CollectionProxy'](https://www.ruby-forum.com/t/undefined-method-extend-for-class-activerecord-collectionproxy/241629)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [June 3, 2015, 7:33am UTC](https://www.ruby-forum.com/t/undefined-method-extend-for-class-activerecord-collectionproxy/241629 "2015-06-03T07:33:11Z")

</div>

I have a rails 3.2.21 app hosted on Heroku, using Heroku Postgres. I got the “undefined method extend' for classActiveRecord::Associations::CollectionProxy’” error fired from every page on one of the web dynos. After …

---

## [Mechanize with custom REQUEST to POST](https://www.ruby-forum.com/t/mechanize-with-custom-request-to-post/235972)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 27, 2013, 3:23am UTC](https://www.ruby-forum.com/t/mechanize-with-custom-request-to-post/235972 "2013-07-27T03:23:56Z")

</div>

Is there a way in Mechanize to add a few custom fields to the REQUEST before POST? I am trying to write a Ruby Script to simulate Browser call to the server. From the Chrome Developer console, I got this { “log”: { …

---

## [Convert Packed decimal to decimal in ruby or shell](https://www.ruby-forum.com/t/convert-packed-decimal-to-decimal-in-ruby-or-shell/212642)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [October 9, 2011, 12:09pm UTC](https://www.ruby-forum.com/t/convert-packed-decimal-to-decimal-in-ruby-or-shell/212642 "2011-10-09T12:09:25Z")

</div>

Hi Friends, I am trying to convert packed decimal to decimal by using ruby or shell but i dont have proper idea. Input:ƒáÅiŒ Output:123456789012 suggest me how to convert or if any library or functions or code snip…

---

## [Please explain how Today and Tomorrow work (TimeZone?)](https://www.ruby-forum.com/t/please-explain-how-today-and-tomorrow-work-timezone/210820)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 19, 2011, 8:58pm UTC](https://www.ruby-forum.com/t/please-explain-how-today-and-tomorrow-work-timezone/210820 "2011-08-19T20:58:41Z")

</div>

ruby-1.9.2-p180 :022 \> range = Date.today.beginning\_of\_day…Date.today.end\_of\_day =\> Wed, 17 Aug 2011 00:00:00 UTC +00:00…Wed, 17 Aug 2011 23:59:59 UTC +00:00 ruby-1.9.2-p180 :023 \> range = Date.tomorrow.beginning\_of…

---

## [Already initialized constant ruby](https://www.ruby-forum.com/t/already-initialized-constant-ruby/208507)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [June 20, 2011, 2:10pm UTC](https://www.ruby-forum.com/t/already-initialized-constant-ruby/208507 "2011-06-20T14:10:24Z")

</div>

Hi Friends, I am using rails 3 version and ruby 1.8.7 for my application. We are using Heroku for hosting our application. The application works fine in my local machine but while running migrate command in heroku(…

---

## [Abount mongrel specification](https://www.ruby-forum.com/t/abount-mongrel-specification/194765)

<div class="topic-metadata">

**Author:** [@yuwtnb](https://www.ruby-forum.com/u/yuwtnb)\
**Replies:** 1\
**Last updated:** [September 10, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/abount-mongrel-specification/194765 "2010-09-10T14:31:56Z")

</div>

Hello all. I would like to ask a question of the session handling of mongrel. I realize that mongrel can only handle one session at once not like apache. Is there any official documentation that describes about this…

---

## [Net::IMAP problem](https://www.ruby-forum.com/t/net-imap-problem/183311)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 1\
**Last updated:** [February 11, 2010, 6:50pm UTC](https://www.ruby-forum.com/t/net-imap-problem/183311 "2010-02-11T18:50:22Z")

</div>

Hello all, My Ruby script: require “net/imap” imap = Net::IMAP.new(‘my server’) imap.authenticate(‘LOGIN’,‘myuser’,‘mypassword’) On the 3rd line I get a “NO response” exception raised (indicating that the IMAP serv…

---

## [Create\_\<association?\>](https://www.ruby-forum.com/t/create-association/168936)

<div class="topic-metadata">

**Author:** [@helix\_tp](https://www.ruby-forum.com/u/helix_tp)\
**Replies:** 1\
**Last updated:** [May 28, 2009, 8:41am UTC](https://www.ruby-forum.com/t/create-association/168936 "2009-05-28T08:41:59Z")

</div>

Any know issues with the dynamic create\_ method and factory\_girl? I have an object created by a factory: @order = Factory.create :payable\_order\_with\_line\_items and then I do: @order.create\_ship\_address(\<attributes f…

---

## [Get CPU usage](https://www.ruby-forum.com/t/get-cpu-usage/155602)

<div class="topic-metadata">

**Author:** [@pandabeer](https://www.ruby-forum.com/u/pandabeer)\
**Replies:** 1\
**Last updated:** [December 14, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/get-cpu-usage/155602 "2008-12-14T15:25:42Z")

</div>

Hello everybody, I would like to get the % of CPU usage of a current Ruby script. For example, I would like to start my script like and allow it to get and print this such as: ./application.rb =\> 12:10 =\> CPU usage …

---

## [How to catch a missing image (rspec-rails)](https://www.ruby-forum.com/t/how-to-catch-a-missing-image-rspec-rails/150071)

<div class="topic-metadata">

**Author:** [@idahoev](https://www.ruby-forum.com/u/idahoev)\
**Replies:** 1\
**Last updated:** [October 3, 2008, 7:37am UTC](https://www.ruby-forum.com/t/how-to-catch-a-missing-image-rspec-rails/150071 "2008-10-03T07:37:49Z")

</div>

I want to make sure all external resources called for by my views (like images) actually exist. How do I write an rspec that will fail when an image included on the page isn’t present? For example, let’s say in appli…

---

## [Signal recording and replay](https://www.ruby-forum.com/t/signal-recording-and-replay/113378)

<div class="topic-metadata">

**Author:** [@Max\_Moser](https://www.ruby-forum.com/u/Max_Moser)\
**Replies:** 1\
**Last updated:** [August 30, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/signal-recording-and-replay/113378 "2007-08-30T17:04:43Z")

</div>

Hi there, well gain i like to ask a short question. I did try to record some signal in 27mhz. Its FM based. I did it like this: 1st i modified usrp\_tx that it saves the recording into a file called audio-0.dat /usr…

---

## [Attachment\_fu validation error](https://www.ruby-forum.com/t/attachment-fu-validation-error/108182)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 1\
**Last updated:** [June 29, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/attachment-fu-validation-error/108182 "2007-06-29T22:38:22Z")

</div>

I have this class: class Logo \< ActiveRecord::Base has\_one :something has\_attachment :content\_type =\> :image, :storage =\> :db\_file, :max\_size =\> 500.kilobytes …

---

## [In after\_update, possible to see previous value of record?](https://www.ruby-forum.com/t/in-after-update-possible-to-see-previous-value-of-record/88356)

<div class="topic-metadata">

**Author:** [@dan\_kuwachi](https://www.ruby-forum.com/u/dan_kuwachi)\
**Replies:** 1\
**Last updated:** [March 10, 2007, 3:05am UTC](https://www.ruby-forum.com/t/in-after-update-possible-to-see-previous-value-of-record/88356 "2007-03-10T03:05:43Z")

</div>

I have this situation where in an after\_update, I would like to know the previous value of the record instead of simply being notified the record has been updated. For example let’s say I had a table called ‘foo’ whic…

---

## [Spork error: Gem::LoadError](https://www.ruby-forum.com/t/spork-error-gem-loaderror/209547)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [July 18, 2011, 8:25am UTC](https://www.ruby-forum.com/t/spork-error-gem-loaderror/209547 "2011-07-18T08:25:55Z")

</div>

=== $ spork Using RSpec Preloading Rails environment You have already activated spork 0.9.0.rc8, but your Gemfile requires spork 0.8.4. Consider using bundle exec. (Gem::LoadError) After updating my Gemfile to newer…

---

## [Restful routing seems excessive at times - I want to simplify](https://www.ruby-forum.com/t/restful-routing-seems-excessive-at-times-i-want-to-simplify/206584)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [May 6, 2011, 2:28pm UTC](https://www.ruby-forum.com/t/restful-routing-seems-excessive-at-times-i-want-to-simplify/206584 "2011-05-06T14:28:34Z")

</div>

I’m still trying to get used to REST concepts and forms I have a very simple controller that updates user profile data. I have this link that takes me to the controller: \<%= link\_to(‘Profile’, :controller =\> “opera…

---

## [Usrp2\_wfm\_rcv.py](https://www.ruby-forum.com/t/usrp2-wfm-rcv-py/155271)

<div class="topic-metadata">

**Author:** [@Catalin\_Lacatus](https://www.ruby-forum.com/u/Catalin_Lacatus)\
**Replies:** 6\
**Last updated:** [March 6, 2010, 2:20am UTC](https://www.ruby-forum.com/t/usrp2-wfm-rcv-py/155271 "2010-03-06T02:20:56Z")

</div>

Hello, -I tried to run usrp2\_wfm\_rcv.py to test my USRP2 with a BasicRX board and I got the following error: ¨ ZeroDivisionError: float division ¨ My configuration is -Ubuntu 8.04, with the latest svn (2 weeks old)-…

---

## [Roll back to last command in irb](https://www.ruby-forum.com/t/roll-back-to-last-command-in-irb/181338)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 6\
**Last updated:** [January 13, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/roll-back-to-last-command-in-irb/181338 "2010-01-13T16:01:45Z")

</div>

Hello, I’m using ruby under ubuntu Linux, ruby version is 1.9.1 What the problem is, when using irb I can’t roll back the command to the last one with “up” key in keyboard. The result as below: irb(main):001:0\> File…

---

## [Simple question: compare words](https://www.ruby-forum.com/t/simple-question-compare-words/175710)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 6\
**Last updated:** [September 18, 2009, 9:07am UTC](https://www.ruby-forum.com/t/simple-question-compare-words/175710 "2009-09-18T09:07:22Z")

</div>

I want to compare same words in a and b then, I wrote this, $ye $bu a = “ali”, “bel”, “del”,“en” b = “ali”,“bas”,“del”,“sx”,“en”,“sz”,“zen” for xa in a $ye= xa end b.each do |bx| $bu = bx if $ye == $bu puts “…

---

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

<div class="topic-metadata">

**Author:** [@nabusman](https://www.ruby-forum.com/u/nabusman)\
**Replies:** 6\
**Last updated:** [July 1, 2009, 12:45am UTC](https://www.ruby-forum.com/t/error-installing-gem/171339 "2009-07-01T00:45:01Z")

</div>

Here is the paste from Terminal: Nabs$ gem install mysql WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren’t both writable. WARNING: You don’t have /Users/Nabs/.gem/ruby/1.8/bin in your P…

---

## [Has\_and\_belongs\_to\_many :self](https://www.ruby-forum.com/t/has-and-belongs-to-many-self/51971)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 6\
**Last updated:** [May 16, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-self/51971 "2009-05-16T20:02:07Z")

</div>

Hi all I got the following class: class Member \< ActiveRecord::Base has\_and\_belongs\_to\_many :buddies, :class\_name =\> ‘Member’, :join\_table =\> ‘members\_have\_buddies’, :foreign\_key =\> ‘member\_id’, :association\_forei…

---

## [SSL plugin](https://www.ruby-forum.com/t/ssl-plugin/156990)

<div class="topic-metadata">

**Author:** [@gilbertsavier](https://www.ruby-forum.com/u/gilbertsavier)\
**Replies:** 6\
**Last updated:** [January 22, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/ssl-plugin/156990 "2009-01-22T21:59:01Z")

</div>

HAppy new year. I was trying to turn on SSL. On trying to install the plugin for ssl I get an error message that the plugin was not found. Any one with an alternative can help me out. This is what I used to instalthe…

---

## [\[BUG:trunk\] r20625 dumps core and many strings associated with wrong encoding](https://www.ruby-forum.com/t/bug-trunk-r20625-dumps-core-and-many-strings-associated-with-wrong-encoding/155406)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 6\
**Last updated:** [December 12, 2008, 6:27am UTC](https://www.ruby-forum.com/t/bug-trunk-r20625-dumps-core-and-many-strings-associated-with-wrong-encoding/155406 "2008-12-12T06:27:31Z")

</div>

Yuguie$B$G$9!#e(B r20625e$B$G!"e(Bdefault\_externale$B$be(Bdefault\_internale$BF1MM$KL$@\_Dj;~$Ke(B (rb\_encoding\_t\*)NULL e$B$rJV$9$h$&$K$J$C$?7k2L!“e(Btrunke$B$Ge(Bruby -e 1e$B$H$9$k$H%3e(B e$B%”$rEG$/$h$&$K$J$j$^$7$?!#…

---

## [Best approach for importing data from a file](https://www.ruby-forum.com/t/best-approach-for-importing-data-from-a-file/151663)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 6\
**Last updated:** [November 24, 2008, 11:59am UTC](https://www.ruby-forum.com/t/best-approach-for-importing-data-from-a-file/151663 "2008-11-24T11:59:21Z")

</div>

Hi All, I’ve got a basic Rails app started. One wrinkle is that the user wants ideally to be able to browse the files system (a la Windows Explorer) to select a file and initiate the importation of data from the fil…

---

## [EvaluaciÃ³n de cadenas a posteriori](https://www.ruby-forum.com/t/evaluacia-n-de-cadenas-a-posteriori/139595)

<div class="topic-metadata">

**Author:** [@rpcolom](https://www.ruby-forum.com/u/rpcolom)\
**Replies:** 6\
**Last updated:** [June 5, 2008, 11:45am UTC](https://www.ruby-forum.com/t/evaluacia-n-de-cadenas-a-posteriori/139595 "2008-06-05T11:45:39Z")

</div>

Â¿hay alguna forma de expandir cadenas a posteriori? s=’#{n}’ n=‘pepe’ expandir s =\> ‘pepe’ # se ha hecho la evaluaciÃ³n de #{n} en s gracias

---

## [How to control self.method access](https://www.ruby-forum.com/t/how-to-control-self-method-access/126295)

<div class="topic-metadata">

**Author:** [@vincent](https://www.ruby-forum.com/u/vincent)\
**Replies:** 6\
**Last updated:** [January 19, 2008, 9:35am UTC](https://www.ruby-forum.com/t/how-to-control-self-method-access/126295 "2008-01-19T09:35:47Z")

</div>

i think self.method just like class method,so if i want to define it as a private method,i should use private\_class\_method :my\_method but i found follow code in \< \> private def self.hash\_password(password) Digest::…

---

## [Generator#yield - what does it do?](https://www.ruby-forum.com/t/generator-yield-what-does-it-do/121928)

<div class="topic-metadata">

**Author:** [@wonado](https://www.ruby-forum.com/u/wonado)\
**Replies:** 6\
**Last updated:** [December 3, 2007, 8:50am UTC](https://www.ruby-forum.com/t/generator-yield-what-does-it-do/121928 "2007-12-03T08:50:51Z")

</div>

Hi! I am confused somehow with respect to “Generator#yield”. The description (ri) is… ri Generator#yield -------------------------------------------------------- Generator#yield yield(value) Yields an element t…

---

## [Version of Ruby for Palm OS?](https://www.ruby-forum.com/t/version-of-ruby-for-palm-os/118393)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 6\
**Last updated:** [November 3, 2007, 2:11am UTC](https://www.ruby-forum.com/t/version-of-ruby-for-palm-os/118393 "2007-11-03T02:11:33Z")

</div>

Does anyone know if a version of Ruby has ever been written to run on the Palm OS? If so, can you provide any references? Thanks, John Dr. John J. LIMS Manager Division of Consolidated Laboratory Services 600 N…

---

## [Using an arrray as a parameter value in ActiveRecord](https://www.ruby-forum.com/t/using-an-arrray-as-a-parameter-value-in-activerecord/115343)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 6\
**Last updated:** [September 24, 2007, 10:16am UTC](https://www.ruby-forum.com/t/using-an-arrray-as-a-parameter-value-in-activerecord/115343 "2007-09-24T10:16:26Z")

</div>

Is it possible to use an array as a parameter value? I tried this and got a mysql error, “Operand should contain 1 column(s)”. class User \< ActiveRecord::Base has\_many :locations def events location\_ids = \[\] for lo…

---

## [Dispatching when function name is stated as a symbol](https://www.ruby-forum.com/t/dispatching-when-function-name-is-stated-as-a-symbol/113460)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 6\
**Last updated:** [September 3, 2007, 9:34am UTC](https://www.ruby-forum.com/t/dispatching-when-function-name-is-stated-as-a-symbol/113460 "2007-09-03T09:34:46Z")

</div>

Can someone point out an elegant way to solve the following problem? I have a module with a function f and additional functions g1, g2, …, which basically looks like this: module M def f(&cb) … x=cb.call # DO SOME…

---

## [Ruby / Rails installation on CentOS](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918)

<div class="topic-metadata">

**Author:** [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Replies:** 6\
**Last updated:** [May 25, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918 "2007-05-25T17:13:10Z")

</div>

Hi, We have a new dedicated server currently running CentOS, PHP, Apache and MySQL. We’d like to install Ruby, Rails and Lighttpd (or Mongrel) on it without breaking Apache and PHP. We have an experienced sysadmin bu…

---

## [Viewing text docs](https://www.ruby-forum.com/t/viewing-text-docs/87027)

<div class="topic-metadata">

**Author:** [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Replies:** 6\
**Last updated:** [February 27, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/viewing-text-docs/87027 "2007-02-27T20:46:24Z")

</div>

I’m building an app that lets users post documents that other users can view. The format to the type of document doesn’t hold up with a cut and paste so they have to upload. My question is how to display the content o…

---

## [What IDE shuuld I use?](https://www.ruby-forum.com/t/what-ide-shuuld-i-use/83378)

<div class="topic-metadata">

**Author:** [@pantouffe](https://www.ruby-forum.com/u/pantouffe)\
**Replies:** 6\
**Last updated:** [January 27, 2007, 10:48am UTC](https://www.ruby-forum.com/t/what-ide-shuuld-i-use/83378 "2007-01-27T10:48:43Z")

</div>

Hi, I’m currently learning and developing in Radrails. But it has a big disadvantage, i would like to have the possibility to see the declaration of a Class, Module in a onew way click. Le’s say i’m at the code lob…

---

## [Eager loading : find\_with\_association](https://www.ruby-forum.com/t/eager-loading-find-with-association/82816)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 6\
**Last updated:** [January 21, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/eager-loading-find-with-association/82816 "2007-01-21T15:12:17Z")

</div>

in the script I am using, I checked the statement : f = find\_with\_associations(options.merge(:sql =\> sanitized\_sql)) where sql = “SELECT…” my select, running fine in sql client mode or find\_by\_sql() and options.in…

---

## [Where to begin?](https://www.ruby-forum.com/t/where-to-begin/80946)

<div class="topic-metadata">

**Author:** [@Oin\_M](https://www.ruby-forum.com/u/Oin_M)\
**Replies:** 6\
**Last updated:** [January 4, 2007, 5:11am UTC](https://www.ruby-forum.com/t/where-to-begin/80946 "2007-01-04T05:11:45Z")

</div>

Hello! I would like to start working on a real project. Start “seeing some action”. I’ve been reading through ruby books for half a year now, but i haven’t yet started to make real programs. What I would like to do …

---

## [Problem getting application.rhtml to work](https://www.ruby-forum.com/t/problem-getting-application-rhtml-to-work/75223)

<div class="topic-metadata">

**Author:** [@Jordan](https://www.ruby-forum.com/u/Jordan)\
**Replies:** 6\
**Last updated:** [November 8, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/problem-getting-application-rhtml-to-work/75223 "2006-11-08T18:23:51Z")

</div>

Hi guys, I’m a day into working on my very first Ruby on Rails app, so this is probably something really silly I’ve overlooked. I just want to get my entire app using a single layout (for now, at least). Going by wha…

---

## [Question about the Set class, XOR, and arrays](https://www.ruby-forum.com/t/question-about-the-set-class-xor-and-arrays/74701)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 6\
**Last updated:** [November 7, 2006, 10:54am UTC](https://www.ruby-forum.com/t/question-about-the-set-class-xor-and-arrays/74701 "2006-11-07T10:54:49Z")

</div>

Hi all, Ruby 1.8.5 irb(main):002:0\> Set\[1,2,3\] ^ Set\[3,4,5,5\] =\> #\<Set: {5, 1, 2, 4}\> Ok, looks good. irb(main):003:0\> Set\[1,2,3\] ^ \[3,4,5,5\] =\> #\<Set: {1, 2, 4}\> What?! I’m confused. Do I need a refresher in Set …

---

## [Migrations + foreign keys](https://www.ruby-forum.com/t/migrations-foreign-keys/98269)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 6\
**Last updated:** [July 14, 2006, 6:21pm UTC](https://www.ruby-forum.com/t/migrations-foreign-keys/98269 "2006-07-14T18:21:44Z")

</div>

Hi all, In the AWDR author use the execute method to declare foreign keys: execute “alter table… add constraint… foreign key…” Is there a ruby sintax to declare a foreign key in a migration class?

---

## [Functional tsts](https://www.ruby-forum.com/t/functional-tsts/97305)

<div class="topic-metadata">

**Author:** [@Naga\_harish\_K](https://www.ruby-forum.com/u/Naga_harish_K)\
**Replies:** 6\
**Last updated:** [July 7, 2006, 9:53pm UTC](https://www.ruby-forum.com/t/functional-tsts/97305 "2006-07-07T21:53:22Z")

</div>

Hi all, I have created projects module in my application using scaffold, and it created me everything, and all the modules are working except the functional test. This is the error Failure: test\_create(ProjectsC…

---

## [Help with Forms](https://www.ruby-forum.com/t/help-with-forms/58144)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 6\
**Last updated:** [April 19, 2006, 5:51pm UTC](https://www.ruby-forum.com/t/help-with-forms/58144 "2006-04-19T17:51:45Z")

</div>

Hello, Ive been trying to sort out this problem for a couple of days now. Here’s my problem: Im builing an ajax form that has a repetitive sequence of similar form elements (tracking\_id). \<%= text\_field “asset”, “tr…

---

## [Problem with Basic Block in Python](https://www.ruby-forum.com/t/problem-with-basic-block-in-python/237114)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [October 25, 2013, 12:53pm UTC](https://www.ruby-forum.com/t/problem-with-basic-block-in-python/237114 "2013-10-25T12:53:40Z")

</div>

Hi, I have been writing a Python block and having realised I would need to have a mismatch between input and output items, I tried to create a new ‘basic block’. I haven’t even added any code yet, it is: "import num…

---

## [Multi FXDataTarget](https://www.ruby-forum.com/t/multi-fxdatatarget/209963)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [July 27, 2011, 11:00am UTC](https://www.ruby-forum.com/t/multi-fxdatatarget/209963 "2011-07-27T11:00:15Z")

</div>

Hello There I’m trying to create a window that will display a line similar to what datatarget.rb exemple does, except it would do it for an unknown number of items, stocked in a given array. Here is the code I would …

---

## [Remote server static content is not getting loaded](https://www.ruby-forum.com/t/remote-server-static-content-is-not-getting-loaded/242653)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [August 2, 2015, 1:34am UTC](https://www.ruby-forum.com/t/remote-server-static-content-is-not-getting-loaded/242653 "2015-08-02T01:34:07Z")

</div>

Hi, ISSUE: Static content is not loaded from remote server where application is deployed, rather it is reading from the server where NGinx is installed. Nginx-1.8.0 is installed (on the server nginx.corp.stel.no) Pr…

---

## [GNURadio - Failed rtl-sdr/gr-osmosdr build using buildscript](https://www.ruby-forum.com/t/gnuradio-failed-rtl-sdr-gr-osmosdr-build-using-buildscript/245625)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [June 21, 2013, 3:29pm UTC](https://www.ruby-forum.com/t/gnuradio-failed-rtl-sdr-gr-osmosdr-build-using-buildscript/245625 "2013-06-21T15:29:47Z")

</div>

dell@ubuntu:~$ ./build-gnuradio This script will install Gnu Radio from current GIT sources You will require Internet access from the computer on which this script runs. You will also require SUDO access. You will req…

---

## [Dragonfly and Zip uploads](https://www.ruby-forum.com/t/dragonfly-and-zip-uploads/211873)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [August 9, 2012, 4:58pm UTC](https://www.ruby-forum.com/t/dragonfly-and-zip-uploads/211873 "2012-08-09T16:58:07Z")

</div>

I’m poring through the Dragonfly source code right now, trying to get a handle on how to apply the following technique there: Client uploads a Zip archive containing N images, PDF files, text files, etc. When that fil…

---

## [Nginx load balancing Tomcat servers](https://www.ruby-forum.com/t/nginx-load-balancing-tomcat-servers/217408)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 2, 2012, 7:56pm UTC](https://www.ruby-forum.com/t/nginx-load-balancing-tomcat-servers/217408 "2012-03-02T19:56:33Z")

</div>

Hello, What is the right way to setup a true load balancing of a few Tomcat servers? By word “true” I understand taking into account at least CPU load of those nodes, not just round robining. I’ve looked at 3rd par…

---

## [Problem with layout\_iter\_copy with Pango 1.29.3](https://www.ruby-forum.com/t/problem-with-layout-iter-copy-with-pango-1-29-3/211828)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [September 15, 2011, 5:03pm UTC](https://www.ruby-forum.com/t/problem-with-layout-iter-copy-with-pango-1-29-3/211828 "2011-09-15T17:03:30Z")

</div>

Hi! It seems that PangoLayoutIter is an opaque type. Thus, the following code won’t work: static PangoLayoutIter\* layout\_iter\_copy(const PangoLayoutIter ref) { #if PANGO\_CHECK\_VERSION(1,6,0) PangoLayoutIter new\_r…

---

## [Error: 'Access denied for user 'root'@'localhost' \<using password: NO\>'](https://www.ruby-forum.com/t/error-access-denied-for-user-root-localhost-using-password-no/205298)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 3, 2011, 11:59am UTC](https://www.ruby-forum.com/t/error-access-denied-for-user-root-localhost-using-password-no/205298 "2011-04-03T11:59:04Z")

</div>

rails railscoders --database=mysql created the directory with folders except for a ‘components/’ folder which Practical Rails by Alan B. lists as one of the folders created. Continuing with: mysqladmin -u root creat…

---

## [Running rspec complains about missing cucumber-rails](https://www.ruby-forum.com/t/running-rspec-complains-about-missing-cucumber-rails/183576)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 17, 2010, 4:47pm UTC](https://www.ruby-forum.com/t/running-rspec-complains-about-missing-cucumber-rails/183576 "2010-02-17T16:47:17Z")

</div>

Hello, I can run cucumber tests, but when I run a rspec command (\>ruby script \\spec spec\\views\\category\_metr ics\\show.html.erb\_spec.rb --backtrace), I am getting an error that the rails-cucumber gem is not found: n…

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

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