# Top

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

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

---

## [Two-Dimensional Hashes through links?](https://www.ruby-forum.com/t/two-dimensional-hashes-through-links/60967)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 3\
**Last updated:** [May 19, 2006, 12:20am UTC](https://www.ruby-forum.com/t/two-dimensional-hashes-through-links/60967 "2006-05-19T00:20:43Z")

</div>

I’m really hitting a wall here. My program has a search engine, returns a list of results. I am using a two-dimensional hash to pass the form data back to my controller. (i.e. params\[:job\] =\> {:description =\> “xxx”, :…

---

## [Variable variables?](https://www.ruby-forum.com/t/variable-variables/93955)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 3\
**Last updated:** [April 16, 2006, 11:45am UTC](https://www.ruby-forum.com/t/variable-variables/93955 "2006-04-16T11:45:21Z")

</div>

Hi everyone, Does Ruby support variable variables like PHP (PHP: Variable variables - Manual)? Or do I have to use eval, like some\_hash.each\_pair{|key, pair| eval “#{key} = #{value}” } Or is there some other way? …

---

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

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 3\
**Last updated:** [April 6, 2006, 5:21am UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-find/56966 "2006-04-06T05:21:22Z")

</div>

Say I have a post model that has\_and\_belongs\_to\_many :categories, and a category model that has\_and\_belongs\_to\_many :posts. So I have a categories\_posts table to do the join. That’s all find and dandy. However I want …

---

## [RUDL on Mac OS X?](https://www.ruby-forum.com/t/rudl-on-mac-os-x/79284)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 3\
**Last updated:** [March 13, 2006, 3:37am UTC](https://www.ruby-forum.com/t/rudl-on-mac-os-x/79284 "2006-03-13T03:37:36Z")

</div>

Has anyone successfully installed the RUDL library on Mac OS X (preferably Tiger)? If so, can you give me the magic incarnation to feed exconf.rb? Thanks. James Edward G. II

---

## [Switchtower not updating code](https://www.ruby-forum.com/t/switchtower-not-updating-code/76459)

<div class="topic-metadata">

**Author:** [@Ray\_M](https://www.ruby-forum.com/u/Ray_M)\
**Replies:** 3\
**Last updated:** [March 5, 2006, 1:04am UTC](https://www.ruby-forum.com/t/switchtower-not-updating-code/76459 "2006-03-05T01:04:48Z")

</div>

When I deploy using switchtower the code does not update at all. It does however copy the old release into its timestamped directory under /releases/, but nothing in /currect/… is updated. Any help at all would be mu…

---

## [TinyMCE or FCKEditor (WYSISYG editor)](https://www.ruby-forum.com/t/tinymce-or-fckeditor-wysisyg-editor/76235)

<div class="topic-metadata">

**Author:** [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Replies:** 3\
**Last updated:** [March 4, 2006, 11:29am UTC](https://www.ruby-forum.com/t/tinymce-or-fckeditor-wysisyg-editor/76235 "2006-03-04T11:29:59Z")

</div>

TinyMCE or FCKEditor? which one is the best from your experience? Or anything better than these two for rails env? Thank you all, Dunnil

---

## [Using variables within a string - The function doesn't pass](https://www.ruby-forum.com/t/using-variables-within-a-string-the-function-doesnt-pass/97501)

<div class="topic-metadata">

**Author:** [@softwareengineer\_99](https://www.ruby-forum.com/u/softwareengineer_99)\
**Replies:** 3\
**Last updated:** [February 24, 2006, 6:45pm UTC](https://www.ruby-forum.com/t/using-variables-within-a-string-the-function-doesnt-pass/97501 "2006-02-24T18:45:57Z")

</div>

Hello everyone, As a beginner to ROR, I am very confused regarding why the following is happening. If my function is defined as def self.home\_categories (portal\_id) find(:all, :conditions =\> \[ "portal\_id=?", …

---

## [Accessing Strongspace from a rails app](https://www.ruby-forum.com/t/accessing-strongspace-from-a-rails-app/101268)

<div class="topic-metadata">

**Author:** [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Replies:** 3\
**Last updated:** [February 8, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/accessing-strongspace-from-a-rails-app/101268 "2006-02-08T20:35:47Z")

</div>

Is there any information on how to go about accessing a strongspace account from a rails app? What are the preferred methods for doing this? Are there plugins for RoR that support SFTP transfers and so on? Jake

---

## [Local variable and closure](https://www.ruby-forum.com/t/local-variable-and-closure/99943)

<div class="topic-metadata">

**Author:** [@SchSSS\_le\_Daniel](https://www.ruby-forum.com/u/SchSSS_le_Daniel)\
**Replies:** 3\
**Last updated:** [February 1, 2006, 11:19pm UTC](https://www.ruby-forum.com/t/local-variable-and-closure/99943 "2006-02-01T23:19:01Z")

</div>

Hello, below is one little script that fails at ### \<\<\< line the output is Animal has properties Animal will be speakable Dog has properties Dog will be speakable Duck has properties Duck will be speakable …/dor…

---

## [Couple of quick comments](https://www.ruby-forum.com/t/couple-of-quick-comments/52563)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 0\
**Last updated:** [January 16, 2006, 3:33pm UTC](https://www.ruby-forum.com/t/couple-of-quick-comments/52563 "2006-01-16T15:33:21Z")

</div>

Good news first, after a little struggle I have the user and login engines working together with out any changes made. Yeah! (running engines 1.0.5 and trunk from the user and login engines) One thing I’ve noticed, if…

---

## [Geocode for Ruby](https://www.ruby-forum.com/t/geocode-for-ruby/50252)

<div class="topic-metadata">

**Author:** [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Replies:** 3\
**Last updated:** [December 14, 2005, 6:15pm UTC](https://www.ruby-forum.com/t/geocode-for-ruby/50252 "2005-12-14T18:15:49Z")

</div>

Hey, Does anybody know of a good Geocode library for Ruby, similar to Perl’s Geocode::Postal, that i could use in my rail app? I need to do some “within 5 miles” calculations of zipcodes and i dont have a nice ruby (…

---

## [Display problem](https://www.ruby-forum.com/t/display-problem/233130)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 19, 2014, 1:14pm UTC](https://www.ruby-forum.com/t/display-problem/233130 "2014-11-19T13:14:02Z")

</div>

\<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"\> Hello, I have this : movies = {harry\_potter: 9 } puts "Wat wil u doen : " choice = gets.chomp …

---

## [OAuth Facebook Authentication](https://www.ruby-forum.com/t/oauth-facebook-authentication/230346)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 19, 2014, 10:06am UTC](https://www.ruby-forum.com/t/oauth-facebook-authentication/230346 "2014-06-19T10:06:56Z")

</div>

Dear all Developers, I want to create login page on rails by OAuth. but i don’t know how to use OAuth. I need help. thanks. veasna

---

## [Can no longer build packages for PPA](https://www.ruby-forum.com/t/can-no-longer-build-packages-for-ppa/237808)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [December 3, 2013, 11:28pm UTC](https://www.ruby-forum.com/t/can-no-longer-build-packages-for-ppa/237808 "2013-12-03T23:28:01Z")

</div>

Greetings, Lately, I have been having increasing difficulties with building gnuradio successfully on the Ubuntu PPA builders. I think the problems is that the builds run in emulated environments and the builder is not …

---

## [\[ruby-trunk - Bug #6456\]\[Open\] \[readline\] Readline.point when history edited](https://www.ruby-forum.com/t/ruby-trunk-bug-6456-open-readline-readline-point-when-history-edited/219869)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [April 6, 2013, 4:12pm UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-6456-open-readline-readline-point-when-history-edited/219869 "2013-04-06T16:12:03Z")

</div>

Issue #6456 has been reported by no6v (Nobuhiro IMAI). Bug #6456: \[readline\] Readline.point when history edited Author: no6v (Nobuhiro IMAI) Status: Open Priority: Normal Assignee: Category: ext Target version: …

---

## [Find by id in the view template dynamically](https://www.ruby-forum.com/t/find-by-id-in-the-view-template-dynamically/223134)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [September 23, 2012, 12:22pm UTC](https://www.ruby-forum.com/t/find-by-id-in-the-view-template-dynamically/223134 "2012-09-23T12:22:18Z")

</div>

Rails 3.1.3 I have a model ‘Airline’, whose STRING column is ‘company’ only. Also, another model ‘Plan’ has an INTEGER column ‘airline\_id’. I would like to show the ‘company’ name (string) in a template like \<% @pl…

---

## [How to add a content to an email created with ActionMailer. mail(..,:body) and do |format| either](https://www.ruby-forum.com/t/how-to-add-a-content-to-an-email-created-with-actionmailer-mail-body-and-do-format-either/221316)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [July 8, 2012, 8:00pm UTC](https://www.ruby-forum.com/t/how-to-add-a-content-to-an-email-created-with-actionmailer-mail-body-and-do-format-either/221316 "2012-07-08T20:00:11Z")

</div>

Hello, I am using ActionMailer and rails 3.0.9 and I want to add a content to an email that the user has entered but when I write: mail(…,:body=\>“Something”) I can’t send the email. I tried mail(…) do |format| form…

---

## [Avoiding a mass assignment security flaw while assigning user roles](https://www.ruby-forum.com/t/avoiding-a-mass-assignment-security-flaw-while-assigning-user-roles/219341)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 30, 2012, 8:13am UTC](https://www.ruby-forum.com/t/avoiding-a-mass-assignment-security-flaw-while-assigning-user-roles/219341 "2012-04-30T08:13:29Z")

</div>

I have User, Account, and Role models. Role stores the relationship type between Account and User. I know that attr\_accessible should be blank in the Role model to prevent attackers from changing either the role type…

---

## [‘class uhd::usrp::multi\_u](https://www.ruby-forum.com/t/class-uhd-multi-u/218277)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 27, 2012, 5:53am UTC](https://www.ruby-forum.com/t/class-uhd-multi-u/218277 "2012-03-27T05:53:22Z")

</div>

I want to implement some functions in uhd::usrp::multi\_usrp, and access these functions from gnu\_uhd\_usrp\_source. Therefore, I modify the files as follows: multi\_usrp.hpp I define the function virtual void enable\_…

---

## [Gem require\_paths required?](https://www.ruby-forum.com/t/gem-require-paths-required/207889)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 6, 2011, 5:54pm UTC](https://www.ruby-forum.com/t/gem-require-paths-required/207889 "2011-06-06T17:54:11Z")

</div>

I’m wondering if a gems require\_path field is really necessary. To what extent is require\_paths used by others? I know I use it one of my projects, and for a long time I thought I could not do without it, but now I th…

---

## [Problem with Cucumber, Rails 3.0.5](https://www.ruby-forum.com/t/problem-with-cucumber-rails-3-0-5/204889)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 24, 2011, 10:10pm UTC](https://www.ruby-forum.com/t/problem-with-cucumber-rails-3-0-5/204889 "2011-03-24T22:10:44Z")

</div>

Hi Everyone! I just updated to rails 3.0.5 from rails 3.0.3, and I deleted my Gemfile.lock and runned “bundle install” it appears that cucumber got a update, because I had to run “rails g cucumber:install” again to f…

---

## [Form level validation, where to do it](https://www.ruby-forum.com/t/form-level-validation-where-to-do-it/203851)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 28, 2011, 9:21pm UTC](https://www.ruby-forum.com/t/form-level-validation-where-to-do-it/203851 "2011-02-28T21:21:27Z")

</div>

Form level validation involving enforcing a relation between two or more form inputs that may not even be in the model: I am building a form that will query a range of records between two dates. The form ask for a st…

---

## [Rails 3 - polymorphic associations problem with ActiveRecord::Relation](https://www.ruby-forum.com/t/rails-3-polymorphic-associations-problem-with-activerecord-relation/200887)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 2\
**Last updated:** [December 24, 2010, 9:48pm UTC](https://www.ruby-forum.com/t/rails-3-polymorphic-associations-problem-with-activerecord-relation/200887 "2010-12-24T21:48:52Z")

</div>

Hi, My application is running over ubuntu 10, ruby 1.9.2, rails 3.0.3 and passenger 3.0.2 + nginx. This application has several polymorphic associations and the problem is that when the associations are called it ra…

---

## [Arjdbc connection bug? (beta2)](https://www.ruby-forum.com/t/arjdbc-connection-bug-beta2/197335)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [October 14, 2010, 8:45pm UTC](https://www.ruby-forum.com/t/arjdbc-connection-bug-beta2/197335 "2010-10-14T20:45:31Z")

</div>

Hello, Using the tip of nickieger’s git tree with DB2 on Linux… Seems the first time a test env tries to access the database it doesn’t work anymore. Symptom is running “rake test” skips unit tests altogether and goe…

---

## [\[Ruby-Feature#3901\]\[Open\] WIN32OLE\_VARIANT.new method lacks consistency](https://www.ruby-forum.com/t/ruby-feature-3901-open-win32ole-variant-new-method-lacks-consistency/195942)

<div class="topic-metadata">

**Author:** [@Akio\_T](https://www.ruby-forum.com/u/Akio_T)\
**Replies:** 2\
**Last updated:** [October 10, 2010, 2:31am UTC](https://www.ruby-forum.com/t/ruby-feature-3901-open-win32ole-variant-new-method-lacks-consistency/195942 "2010-10-10T02:31:06Z")

</div>

Feature #3901: WIN32OLE\_VARIANT.new method lacks consistency http://redmine.ruby-lang.org/issues/show/3901 e$B5/I\<\<Te(B: Akio T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$B%+%F%4%je(B: ext WIN32OLE\_VARIANT.newe$B$…

---

## [ERROR with toolkit.rb](https://www.ruby-forum.com/t/error-with-toolkit-rb/194906)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [September 14, 2010, 3:24pm UTC](https://www.ruby-forum.com/t/error-with-toolkit-rb/194906 "2010-09-14T15:24:59Z")

</div>

i was using Ruby 1.8.5 but recently upgraded to 1.8.7 and now pdf-toolkit is not working. when i try to run a script that opens a pdf using pdf-toolkit i get the following error: C:/Ruby/lib/ruby/gems/1.8/gems/pdf-too…

---

## [Restful\_authentication](https://www.ruby-forum.com/t/restful-authentication/194515)

<div class="topic-metadata">

**Author:** [@bigme](https://www.ruby-forum.com/u/bigme)\
**Replies:** 2\
**Last updated:** [September 6, 2010, 5:59pm UTC](https://www.ruby-forum.com/t/restful-authentication/194515 "2010-09-06T17:59:10Z")

</div>

Ciao a tutti, sto provando ad utilizzare il plugin restful\_authentication (satish) ma ho il seguente errore: uninitialized constant ApplicationController::AuthenticationSystem qualcuno mi sa aiutare o mi sa indirizza…

---

## [USRP Power Supply Noise](https://www.ruby-forum.com/t/usrp-power-supply-noise/193800)

<div class="topic-metadata">

**Author:** [@jfl](https://www.ruby-forum.com/u/jfl)\
**Replies:** 2\
**Last updated:** [August 26, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/usrp-power-supply-noise/193800 "2010-08-26T23:05:29Z")

</div>

Hello, I am attempting to build an analog front-end to a USRP 1 device. I have selected a VCO that will suit the frequency range we are looking at: It is an RFVC1800 and has a tuning range of approximately 7.4 - 12.4…

---

## [\[R3B4\] errors\[:base\] = appends, doesn't "set" - bug, feature, or "error 18"?](https://www.ruby-forum.com/t/r3b4-errors-base-appends-doesnt-set-bug-feature-or-error-18/191450)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 2\
**Last updated:** [July 13, 2010, 6:05pm UTC](https://www.ruby-forum.com/t/r3b4-errors-base-appends-doesnt-set-bug-feature-or-error-18/191450 "2010-07-13T18:05:07Z")

</div>

If you haven’t heard, an “error 18” means “the error is 18 inches from the screen.” Which would mean that I totally get that this could just be me being stupid. However, for some reason I’m thinking this violates the…

---

## [Collection\_select question](https://www.ruby-forum.com/t/collection-select-question/190087)

<div class="topic-metadata">

**Author:** [@bw2010](https://www.ruby-forum.com/u/bw2010)\
**Replies:** 2\
**Last updated:** [June 16, 2010, 10:38am UTC](https://www.ruby-forum.com/t/collection-select-question/190087 "2010-06-16T10:38:09Z")

</div>

Hello! New to ruby on rails, so I hope this isn’t a stupid question (great way to start a post ;)). Basically I’m trying to avoid making a bunch of different columns in my db table by having my collection\_select conc…

---

## [\[Bug:trunk\] rubyspec: Net::HTTPHeader#content\_range returns a Range object that represents the 'Con](https://www.ruby-forum.com/t/bug-trunk-rubyspec-net-httpheader-content-range-returns-a-range-object-that-represents-the-con/182544)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [April 19, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/bug-trunk-rubyspec-net-httpheader-content-range-returns-a-range-object-that-represents-the-con/182544 "2010-04-19T18:24:23Z")

</div>

e$B$J$+$@$5$se(B e$B1sF#$G$9!#e(B class C include Net::HTTPHeader def initialize initialize\_http\_header({}) end end c = C.new c\[“Content-Range”\] = “bytes 0-499/1234” p c.content\_range e$B$N=PNO$,!"e(Br26344 e$…

---

## [Google Analytics and partials](https://www.ruby-forum.com/t/google-analytics-and-partials/184748)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [March 9, 2010, 12:02am UTC](https://www.ruby-forum.com/t/google-analytics-and-partials/184748 "2010-03-09T00:02:57Z")

</div>

I have been tracking users with Google Analytics via the javascript code in the header of my main template and that works very well. I’ve come to realize that there are a few places where I have will\_paginate and some…

---

## [What happens to RJS in Rails 3](https://www.ruby-forum.com/t/what-happens-to-rjs-in-rails-3/183388)

<div class="topic-metadata">

**Author:** [@Emery\_F](https://www.ruby-forum.com/u/Emery_F)\
**Replies:** 2\
**Last updated:** [February 12, 2010, 9:29pm UTC](https://www.ruby-forum.com/t/what-happens-to-rjs-in-rails-3/183388 "2010-02-12T21:29:52Z")

</div>

I know that Rails 3 ideal of unobtrusive javascript will result in the removal of all inline javascript. But where does that leave RJS? It looks like PrototypeGenerator is still a part of the Rails core, so I’m going …

---

## [Need ruby code to handle popup messages](https://www.ruby-forum.com/t/need-ruby-code-to-handle-popup-messages/174905)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 2\
**Last updated:** [September 3, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/need-ruby-code-to-handle-popup-messages/174905 "2009-09-03T21:37:40Z")

</div>

Hello guys I am running an web application driven by watir in the webpage when i click the logout button the page should exit but the problem is a pop window comes stating “are you sure “yes or no”” I need some he…

---

## [Unknown attenuation after analysis filterbank](https://www.ruby-forum.com/t/unknown-attenuation-after-analysis-filterbank/168070)

<div class="topic-metadata">

**Author:** [@feldmaus](https://www.ruby-forum.com/u/feldmaus)\
**Replies:** 2\
**Last updated:** [May 16, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/unknown-attenuation-after-analysis-filterbank/168070 "2009-05-16T22:00:39Z")

</div>

Hi Gnuradio folks, i am analysing the spectrum from 1MHz to 2Mhz. I splitted this Spectrum into 3 parts: 1MHz - 1,333MHz 1,333MHz - 1,666MHz 1,666MHz - 2MHz Therefore i used the Analysis Filterbank. Because i am se…

---

## [How can I trim top of file w/o disrupting other writers?](https://www.ruby-forum.com/t/how-can-i-trim-top-of-file-w-o-disrupting-other-writers/167360)

<div class="topic-metadata">

**Author:** [@bradjpeek](https://www.ruby-forum.com/u/bradjpeek)\
**Replies:** 2\
**Last updated:** [May 7, 2009, 8:40pm UTC](https://www.ruby-forum.com/t/how-can-i-trim-top-of-file-w-o-disrupting-other-writers/167360 "2009-05-07T20:40:52Z")

</div>

As a way to learn ruby, I wrote a method to trim the first “n” lines from a log file. I had planned to use it on a series of log files that are constantly growing. However, some of the programs that are appending …

---

## [A challenge: generate web colors for tree nodes](https://www.ruby-forum.com/t/a-challenge-generate-web-colors-for-tree-nodes/165476)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [April 14, 2009, 9:36pm UTC](https://www.ruby-forum.com/t/a-challenge-generate-web-colors-for-tree-nodes/165476 "2009-04-14T21:36:19Z")

</div>

hey all here’s a nice little ruby challenge to welcome everyone back after easter: I have a long (about 1100) list of elements (class name Property), arranged into a tree structure. I want each node to have its own …

---

## [Hpricot won't scrape! (newb question)](https://www.ruby-forum.com/t/hpricot-wont-scrape-newb-question/164429)

<div class="topic-metadata">

**Author:** [@jrgoodner](https://www.ruby-forum.com/u/jrgoodner)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/hpricot-wont-scrape-newb-question/164429 "2009-04-01T14:50:50Z")

</div>

Hey all! Just to preface, I am fairly new to RoR, and brand new to using hpricot. I am using the following code to scrape this xpath: “/html/body/div/div\[5\]/div/div\[2\]/div\[2\]/div\[2\]” from this url: “http://www.grea…

---

## [Lambda vs non-lambda proc](https://www.ruby-forum.com/t/lambda-vs-non-lambda-proc/164282)

<div class="topic-metadata">

**Author:** [@stevedogers](https://www.ruby-forum.com/u/stevedogers)\
**Replies:** 2\
**Last updated:** [March 31, 2009, 4:38am UTC](https://www.ruby-forum.com/t/lambda-vs-non-lambda-proc/164282 "2009-03-31T04:38:47Z")

</div>

I guess my question is rather simple, what’s the difference between blocks defined with lambda and blocks that aren’t? Cheers!

---

## [Factory Girl Associations Issue with Uniqueness Validations](https://www.ruby-forum.com/t/factory-girl-associations-issue-with-uniqueness-validations/162888)

<div class="topic-metadata">

**Author:** [@redii](https://www.ruby-forum.com/u/redii)\
**Replies:** 2\
**Last updated:** [March 20, 2009, 8:25am UTC](https://www.ruby-forum.com/t/factory-girl-associations-issue-with-uniqueness-validations/162888 "2009-03-20T08:25:04Z")

</div>

Greetings, Does anybody have a workaround/solution for Factory Girl’s insistence on creating a new record for each association it creates? As far as I can tell, this makes using Factory Girl unusable when you have un…

---

## [Need Basic RoR Doc](https://www.ruby-forum.com/t/need-basic-ror-doc/161393)

<div class="topic-metadata">

**Author:** [@sankarkumar](https://www.ruby-forum.com/u/sankarkumar)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 7:53am UTC](https://www.ruby-forum.com/t/need-basic-ror-doc/161393 "2009-02-26T07:53:51Z")

</div>

I’m C/UNIX programmer . Can you please somebody give some basic doc to get start small application … Framework also very new for me… Actually I need to know how DB operation is doing in RoR… & my task is to compare 3 …

---

## [Sobre internacionalizaciÃ³n](https://www.ruby-forum.com/t/sobre-internacionalizacia-n/159334)

<div class="topic-metadata">

**Author:** [@josedes](https://www.ruby-forum.com/u/josedes)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 2:09am UTC](https://www.ruby-forum.com/t/sobre-internacionalizacia-n/159334 "2009-02-04T02:09:51Z")

</div>

Hola a todos. Una pregunta quizas algo tonta, cuando hago validaciones en el modelo con mensajes para la vista en espaÃ±ol efectivamente me los muestra en espaÃ±ol, pero como puedo hacer para que estos mensajes que so…

---

## [Htmldiff between 2 files](https://www.ruby-forum.com/t/htmldiff-between-2-files/127028)

<div class="topic-metadata">

**Author:** [@j4nus](https://www.ruby-forum.com/u/j4nus)\
**Replies:** 2\
**Last updated:** [January 31, 2009, 11:45am UTC](https://www.ruby-forum.com/t/htmldiff-between-2-files/127028 "2009-01-31T11:45:10Z")

</div>

Dear all, I’m looking a existing ruby script that will allow me to create a html diff between 2 existing text files. I already found similar scripts but what I need is to have 2 colons: on the left for the first file…

---

## [Best find for the job](https://www.ruby-forum.com/t/best-find-for-the-job/158829)

<div class="topic-metadata">

**Author:** [@Neal\_L](https://www.ruby-forum.com/u/Neal_L)\
**Replies:** 2\
**Last updated:** [January 28, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/best-find-for-the-job/158829 "2009-01-28T22:33:16Z")

</div>

Hi all, I’m trying to find the most effective way to generate an aggregation report. The models involved are: Customer --(has\_many)–\> Charges Charges --(have\_one)–\>Account What I’m trying to do is find the total c…

---

## [REST: transfer data between applications](https://www.ruby-forum.com/t/rest-transfer-data-between-applications/157897)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/rest-transfer-data-between-applications/157897 "2009-01-16T16:11:13Z")

</div>

Hi all I’m having trouble finding info on how to tranfser data between 2 rest appliations. I will try to scetch my problem as simple as possible. I store data in my first application. In my first application, users ne…

---

## [Collection\_select not remembering selected value](https://www.ruby-forum.com/t/collection-select-not-remembering-selected-value/156738)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 2\
**Last updated:** [January 2, 2009, 9:28am UTC](https://www.ruby-forum.com/t/collection-select-not-remembering-selected-value/156738 "2009-01-02T09:28:27Z")

</div>

Hello- I have a form that I’m using form\_for on to bind the form to my order object. Within the form, I want to select a product (each order has one product, which makes this easy). In my order and product models, an…

---

## [Rb\_thread\_critical in 1.9.1](https://www.ruby-forum.com/t/rb-thread-critical-in-1-9-1/155213)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 2\
**Last updated:** [December 10, 2008, 11:35am UTC](https://www.ruby-forum.com/t/rb-thread-critical-in-1-9-1/155213 "2008-12-10T11:35:40Z")

</div>

e$B?\\F#$G$9!#e(B Ruby/GLibe$B$Ge(Brb\_thread\_criticale$B$r;H$C$F$$$k$N$G$9$,!“e(B rb\_thread\_criticale$B$,e(B1.9.1e$B$G$O$J$/$J$C$F$$$k$?$a!”%S%k%I$G$-e(B e$B$J$$\>uBV$K$J$C$F$$$^$9!#e(B 1.9.1e$B$G$bF0$/$h$&$K$7$?$$$N$G…

---

## [Incompatible versioning of InstantRails?](https://www.ruby-forum.com/t/incompatible-versioning-of-instantrails/154584)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 2\
**Last updated:** [December 2, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/incompatible-versioning-of-instantrails/154584 "2008-12-02T23:03:29Z")

</div>

I’m trying to get InstantRails running on a different computer than I originally started and I’ve gotten stuck. I kind of think it’s a versioning issue, but don’t have a real good “reason why” I think that. Here’s th…

---

## [How is the request XML parsed](https://www.ruby-forum.com/t/how-is-the-request-xml-parsed/153897)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 2\
**Last updated:** [November 24, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/how-is-the-request-xml-parsed/153897 "2008-11-24T18:08:42Z")

</div>

Hi all When one sends for example a POST request with an XML body Rails parses this into a hash with a corresponding structure. How is this conversion done and where? Which XML library is used? Any pointers on where …

---

## [Drb works on one system fails on other](https://www.ruby-forum.com/t/drb-works-on-one-system-fails-on-other/153488)

<div class="topic-metadata">

**Author:** [@random52k](https://www.ruby-forum.com/u/random52k)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/drb-works-on-one-system-fails-on-other/153488 "2008-11-17T23:34:40Z")

</div>

Attached is a simple test program. I’m running the server on Ubuntu Linux 7.10, the client on Windows XP SP2. On one pair of such systems it works perfectly. On the other, it fails with the error given below. Any …

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

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