# Top

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

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

---

## [Help ruby started acting strange](https://www.ruby-forum.com/t/help-ruby-started-acting-strange/75044)

<div class="topic-metadata">

**Author:** [@cparticle](https://www.ruby-forum.com/u/cparticle)\
**Replies:** 8\
**Last updated:** [November 7, 2006, 11:15am UTC](https://www.ruby-forum.com/t/help-ruby-started-acting-strange/75044 "2006-11-07T11:15:13Z")

</div>

Hey all, I need some help. I’m having some problems with strings in Ruby. More specifically I keep having to explicitly convert string to strings. Let me say that I’ve had some problems with my system and I’ve had …

---

## [Map.connect / url re-writing](https://www.ruby-forum.com/t/map-connect-url-re-writing/71813)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 8\
**Last updated:** [October 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/map-connect-url-re-writing/71813 "2006-10-18T10:39:14Z")

</div>

Hey everyone, I’ve got an application that manages users. It has a default layout with a navigation bar, whose links require the current user – for example, \<% link\_to ‘Contact Details’, :controller =\> ‘user’, :action…

---

## [404 Error when trying to run](https://www.ruby-forum.com/t/404-error-when-trying-to-run/69378)

<div class="topic-metadata">

**Author:** [@freewolf](https://www.ruby-forum.com/u/freewolf)\
**Replies:** 8\
**Last updated:** [September 20, 2006, 11:14pm UTC](https://www.ruby-forum.com/t/404-error-when-trying-to-run/69378 "2006-09-20T23:14:03Z")

</div>

I am with Dreamhost as my ISP. I set up Ruby on Rails as per their wiki. (http://wiki.dreamhost.com/index.php/Ruby\_on\_Rails) I can get to the index page fine. When I click the link to view the application enviroment …

---

## [Rails saves it to the database and I don't want to](https://www.ruby-forum.com/t/rails-saves-it-to-the-database-and-i-dont-want-to/63458)

<div class="topic-metadata">

**Author:** [@barraorion](https://www.ruby-forum.com/u/barraorion)\
**Replies:** 8\
**Last updated:** [June 20, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/rails-saves-it-to-the-database-and-i-dont-want-to/63458 "2006-06-20T18:48:04Z")

</div>

Hello: I am developing a web application to book machines for an event. so I have an event model class Event \< ActiveRecord::Base has\_many :datetimes … end and a datetime model class Datetime \< ActiveRecord::Base …

---

## [\[ANN\] Rails 5.0.0.beta1.1, 4.2.5.1, 4.1.14.1, 3.2.22.1, and rails-html-sanitizer 1.0.3 have been rel](https://www.ruby-forum.com/t/ann-rails-5-0-0-beta1-1-4-2-5-1-4-1-14-1-3-2-22-1-and-rails-html-sanitizer-1-0-3-have-been-rel/243919)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [January 27, 2016, 10:52pm UTC](https://www.ruby-forum.com/t/ann-rails-5-0-0-beta1-1-4-2-5-1-4-1-14-1-3-2-22-1-and-rails-html-sanitizer-1-0-3-have-been-rel/243919 "2016-01-27T22:52:52Z")

</div>

Hello everyone and happy Monday! Rails 5.0.0.beta1.1, 4.2.5.1, 4.1.14.1, and 3.2.22.1 have been released! These contain the following important security fixes, and it is recommended that users upgrade as soon as possi…

---

## [Report on university course based on DARPA Spectrum Challenge](https://www.ruby-forum.com/t/report-on-university-course-based-on-darpa-spectrum-challenge/234167)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [February 12, 2015, 2:51pm UTC](https://www.ruby-forum.com/t/report-on-university-course-based-on-darpa-spectrum-challenge/234167 "2015-02-12T14:51:57Z")

</div>

Hi all, I was a participant in the DARPA Spectrum Challenge last year. Inspired by the Challenge, I developed a new course in which students learned about wireless communications and software radio in the context of…

---

## [Ajax Search](https://www.ruby-forum.com/t/ajax-search/235843)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 19, 2013, 3:12pm UTC](https://www.ruby-forum.com/t/ajax-search/235843 "2013-07-19T15:12:57Z")

</div>

Hello All, I am using Kaminari gem for pagination. I want to do a ajax search on the same page of the data in the table which is a list of images with names. Can anyone suggest anything ? Thanks, Avi

---

## [USRP: is performance degradation of PSK OK?](https://www.ruby-forum.com/t/usrp-is-performance-degradation-of-psk-ok/219221)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 26, 2012, 5:53pm UTC](https://www.ruby-forum.com/t/usrp-is-performance-degradation-of-psk-ok/219221 "2012-04-26T17:53:12Z")

</div>

Hi list, I am experimenting with narrowband benchmark\_tx/rx in real indoor air interface. The software is GNU Radio 3.5.3.2 and the hardware available is USRP with RFX2400 daughter boards. When I use gmsk modulation …

---

## [Way to identify ambiguity between local-var name and class method name](https://www.ruby-forum.com/t/way-to-identify-ambiguity-between-local-var-name-and-class-method-name/218357)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 30, 2012, 2:34am UTC](https://www.ruby-forum.com/t/way-to-identify-ambiguity-between-local-var-name-and-class-method-name/218357 "2012-03-30T02:34:29Z")

</div>

Greetings, everyone! There is wide-used practice in ruby to use attr\_accessor (actually, in Active Record). But ambiguity between local variable and method names produces hard-to-catch(silent) errors, for example: c…

---

## [Ternary statement needing parenthesis..(?)](https://www.ruby-forum.com/t/ternary-statement-needing-parenthesis/210708)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [August 16, 2011, 8:54am UTC](https://www.ruby-forum.com/t/ternary-statement-needing-parenthesis/210708 "2011-08-16T08:54:56Z")

</div>

Hello, just wondering why is it that I have to use the parenthesis in the below ternary statement? (A.) works fine but (B.) bombs out with a syntax error:- (1) 60 \> 55 ? puts(“when true”) : puts(“when false”) (2) 60 \>…

---

## [Highlighting a table row](https://www.ruby-forum.com/t/highlighting-a-table-row/205596)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [April 10, 2011, 11:40am UTC](https://www.ruby-forum.com/t/highlighting-a-table-row/205596 "2011-04-10T11:40:37Z")

</div>

Is there a way to get rid of the “onclick” here and just set the highlight if the book.title == session\[:book\]\[:title\]? The javascript works fine for the onclick, but I want to highlight when the page loads… \<% @boo…

---

## [Trying to working our with javascript](https://www.ruby-forum.com/t/trying-to-working-our-with-javascript/202795)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 7, 2011, 4:23am UTC](https://www.ruby-forum.com/t/trying-to-working-our-with-javascript/202795 "2011-02-07T04:23:49Z")

</div>

hi i have java script document in /js/test.js when i try to access that file i am getting error www.domain.com/js/test.js 500 Internal Server Error nginx/0.8.53 error log showing me this 2011/02/06 15:12:44 \[error\]…

---

## [Having some issues with factory\_girl and bundler](https://www.ruby-forum.com/t/having-some-issues-with-factory-girl-and-bundler/195669)

<div class="topic-metadata">

**Author:** [@cdiaz](https://www.ruby-forum.com/u/cdiaz)\
**Replies:** 3\
**Last updated:** [September 28, 2010, 12:28am UTC](https://www.ruby-forum.com/t/having-some-issues-with-factory-girl-and-bundler/195669 "2010-09-28T00:28:50Z")

</div>

Hi All Need some brilliants minds here :slight\_smile: I’m using Rails 2.3.8 & ruby 1.8 (I know, I know… ) I’ve move my gems from .gems to Bundler, but I’m having some issues with Factory\_girl when I rake spec “unini…

---

## [How to include a ruby gem environment.rb file?](https://www.ruby-forum.com/t/how-to-include-a-ruby-gem-environment-rb-file/185714)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 3\
**Last updated:** [March 26, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/how-to-include-a-ruby-gem-environment-rb-file/185714 "2010-03-26T17:32:55Z")

</div>

I’m doing a Web Service Based on a page I found (http://blog.complitech.net/web-services-basics-ruby-on-rails/) using the rails version 2.3.4, the web service is already working, but when working on a version Previous…

---

## [Is this SQL possible with Rails? How can I sanitize?](https://www.ruby-forum.com/t/is-this-sql-possible-with-rails-how-can-i-sanitize/183002)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/is-this-sql-possible-with-rails-how-can-i-sanitize/183002 "2010-02-05T21:56:30Z")

</div>

I want to do something like this in Rails: “SELECT \*, COUNT(post\_id) AS total FROM comments … conditions” Is that SELECT possible in Rails. Ohterwise, I can use find\_by\_sql, but i’m trying to avoid SQL injection and t…

---

## [Gtksourceview - 2.x.x?](https://www.ruby-forum.com/t/gtksourceview-2-x-x/179462)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 3\
**Last updated:** [December 19, 2009, 2:35am UTC](https://www.ruby-forum.com/t/gtksourceview-2-x-x/179462 "2009-12-19T02:35:57Z")

</div>

Hi, Are there plans to upgrade gtksourceview to version 2.x ? Gtksourceview - 1.x gives me some trouble lately, and I am wondering whether gtksourceview 2.x would be better. Just curious. :slight\_smile:

---

## [Invalid binding information](https://www.ruby-forum.com/t/invalid-binding-information/172122)

<div class="topic-metadata">

**Author:** [@mushi](https://www.ruby-forum.com/u/mushi)\
**Replies:** 0\
**Last updated:** [July 15, 2009, 7:38am UTC](https://www.ruby-forum.com/t/invalid-binding-information/172122 "2009-07-15T07:38:43Z")

</div>

Hello everyone i am working on a web application where i need to authenticate our company user’s with our active directory/ldap server. i am using ruby-net-ldap gem for that purpose and getting the following error N…

---

## [RSpecers point of view about how to create rails association](https://www.ruby-forum.com/t/rspecers-point-of-view-about-how-to-create-rails-association/167040)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [May 3, 2009, 3:32am UTC](https://www.ruby-forum.com/t/rspecers-point-of-view-about-how-to-create-rails-association/167040 "2009-05-03T03:32:45Z")

</div>

Hi, Using Ruby on Rails, let’s says I have an Article model and Comment model. An Article has\_many :comments, Using Rais idiom, one would do something like that in the comments\_controller/create: @article = Article.…

---

## [Need help with rake db:migrate and mysql on Mac OS X Darwin](https://www.ruby-forum.com/t/need-help-with-rake-db-migrate-and-mysql-on-mac-os-x-darwin/158063)

<div class="topic-metadata">

**Author:** [@rst](https://www.ruby-forum.com/u/rst)\
**Replies:** 0\
**Last updated:** [January 18, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/need-help-with-rake-db-migrate-and-mysql-on-mac-os-x-darwin/158063 "2009-01-18T23:31:19Z")

</div>

When I run the command, with the --trace option I get the following stacktrace rake --trace db:migrate (in /Users/roberttodd/ruby/photos) \*\* Invoke db:migrate (first\_time) \*\* Invoke environment (first\_time) \*\* Exec…

---

## [Windows Vista Tablet PC, handwriting and Open Source Software](https://www.ruby-forum.com/t/windows-vista-tablet-pc-handwriting-and-open-source-software/137651)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 3\
**Last updated:** [May 15, 2008, 9:50am UTC](https://www.ruby-forum.com/t/windows-vista-tablet-pc-handwriting-and-open-source-software/137651 "2008-05-15T09:50:54Z")

</div>

Dear all, sorry for asking something off-topic. I know there are many Windows experts on this list and I couldn’t find any response somewhere else yet. I have a handheld PC running Windows Vista Ultimate (actually a…

---

## [Create matrix with random numbers](https://www.ruby-forum.com/t/create-matrix-with-random-numbers/117760)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 3\
**Last updated:** [October 20, 2007, 6:56am UTC](https://www.ruby-forum.com/t/create-matrix-with-random-numbers/117760 "2007-10-20T06:56:47Z")

</div>

I would like to start evaluating Ruby’s capabilities in processing large linear systems and matrices and I would like to know if there is a simple way to ‘randomly’ populate various matrices regardless of size or type…

---

## [Any database performance test for rails?](https://www.ruby-forum.com/t/any-database-performance-test-for-rails/116368)

<div class="topic-metadata">

**Author:** [@maul](https://www.ruby-forum.com/u/maul)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/any-database-performance-test-for-rails/116368 "2007-10-05T18:45:14Z")

</div>

hey guys, Our company use Asterisk and MS SQL for an IVR application. Our application is based heavly on MS SQL. But we want to change to a linux server with Asterisk+RAGI (rails AGI)and a database but I dont know wh…

---

## [Good Ubuntu Root-Access Dedicated Server?](https://www.ruby-forum.com/t/good-ubuntu-root-access-dedicated-server/91255)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 9, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/good-ubuntu-root-access-dedicated-server/91255 "2007-04-09T22:19:45Z")

</div>

In January I moved a client off of dedicated hosting and moved them to VPSLink. I dug the VPS concept, but found myself chafing against the limits of OpenVZ. In the past couple of months I’ve moved two clients from T…

---

## [One-Click Ruby Installer 1.8.6-25 released!](https://www.ruby-forum.com/t/one-click-ruby-installer-1-8-6-25-released/89177)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [March 18, 2007, 7:08am UTC](https://www.ruby-forum.com/t/one-click-ruby-installer-1-8-6-25-released/89177 "2007-03-18T07:08:43Z")

</div>

This release of the One-Click Ruby Installer for Windows upgrades Ruby to the recently released 1.8.6 version. That’s it… no other changes! As always, you can download the One-Click Ruby Installer for Windows here: h…

---

## [Putting a correlator in the FPGA](https://www.ruby-forum.com/t/putting-a-correlator-in-the-fpga/87466)

<div class="topic-metadata">

**Author:** [@danhobbs](https://www.ruby-forum.com/u/danhobbs)\
**Replies:** 3\
**Last updated:** [March 3, 2007, 3:45am UTC](https://www.ruby-forum.com/t/putting-a-correlator-in-the-fpga/87466 "2007-03-03T03:45:04Z")

</div>

Hi, I’m trying to put the Barker correlator in the FPGA. This should greatly improve the SNR of the BBN 802.11 code. The plan is: 64Msps complex w/11MHz info -\> Barker Correlator -\> Decim by 16 -\> 4Msps complex with…

---

## [\`ps -ax\` gets cut off when run from cron](https://www.ruby-forum.com/t/ps-ax-gets-cut-off-when-run-from-cron/67973)

<div class="topic-metadata">

**Author:** [@phillyloco](https://www.ruby-forum.com/u/phillyloco)\
**Replies:** 3\
**Last updated:** [September 8, 2006, 9:11am UTC](https://www.ruby-forum.com/t/ps-ax-gets-cut-off-when-run-from-cron/67973 "2006-09-08T09:11:18Z")

</div>

Hello, I have a simple ruby script that writes the content of ps -ax to a file, when I call it myself, it runs fine, however when I set the script in a cron job and cron calls it, the output is truncated at 80 charac…

---

## [activeLDAP - ldap\_mapping - wildcard](https://www.ruby-forum.com/t/activeldap-ldap-mapping-wildcard/57202)

<div class="topic-metadata">

**Author:** [@Marc-Alexandre](https://www.ruby-forum.com/u/Marc-Alexandre)\
**Replies:** 3\
**Last updated:** [May 8, 2006, 11:42pm UTC](https://www.ruby-forum.com/t/activeldap-ldap-mapping-wildcard/57202 "2006-05-08T23:42:14Z")

</div>

Hi, I’ve a problem and I don’t know if it is solvable with activeLDAP. Here is an example of the tree structure of our LDAP server. The structure isn’t exactly like that, but is similare and I can already access almos…

---

## [Rake -v](https://www.ruby-forum.com/t/rake-v/93448)

<div class="topic-metadata">

**Author:** [@DAP](https://www.ruby-forum.com/u/DAP)\
**Replies:** 3\
**Last updated:** [April 3, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/rake-v/93448 "2006-04-03T16:35:51Z")

</div>

I just used Gem to install version 0.7.1 of Rake. When I try to get Rake to report it’s version, it aborts. Here is a listing: C:\\Documents and Settings\\dap\>rake -v rake aborted! No Rakefile found (looking for: rakef…

---

## [A = b = new](https://www.ruby-forum.com/t/a-b-new/98243)

<div class="topic-metadata">

**Author:** [@alex789](https://www.ruby-forum.com/u/alex789)\
**Replies:** 3\
**Last updated:** [January 28, 2006, 3:14pm UTC](https://www.ruby-forum.com/t/a-b-new/98243 "2006-01-28T15:14:20Z")

</div>

Hi there. I’m coming to ruby mainly from python background. in python a = b = range(10) will yields two names pointing to the same object but in ruby a = b = Range.new(0,9) will yield two two distinct objects. To…

---

## [Head first rails Mebay application](https://www.ruby-forum.com/t/head-first-rails-mebay-application/243251)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [September 7, 2015, 9:41pm UTC](https://www.ruby-forum.com/t/head-first-rails-mebay-application/243251 "2015-09-07T21:41:36Z")

</div>

I am using rails 3 and the steps that I have done 1.rails new MeBay 2.rails g model ad name:string description:text price:decimal seller\_id:integer email:string imr\_url:string 3.rake db:migrate 4.rails generate cont…

---

## [Put a block to sleep](https://www.ruby-forum.com/t/put-a-block-to-sleep/241268)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [May 21, 2014, 3:49pm UTC](https://www.ruby-forum.com/t/put-a-block-to-sleep/241268 "2014-05-21T15:49:58Z")

</div>

Hello everybody, I want to connect a source to a sink block but there must be a sort of synchronization between them. The sink block should ask the source to generate data stream on some specific instances. Between th…

---

## [How can I improve and write more OOP way my username/password validation code](https://www.ruby-forum.com/t/how-can-i-improve-and-write-more-oop-way-my-username-password-validation-code/239833)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [March 17, 2014, 5:13pm UTC](https://www.ruby-forum.com/t/how-can-i-improve-and-write-more-oop-way-my-username-password-validation-code/239833 "2014-03-17T17:13:11Z")

</div>

require ‘openssl’ class EncryptDecrypt attr\_reader :secreat\_key def initialize(usr, pwd) @username = usr @password = pwd @secreat\_key ||= {} end def decrypt(usr, pwd) bool = false secreat\_key.each do |k,v| dec…

---

## [GR 3.4.2 sdcc issue](https://www.ruby-forum.com/t/gr-3-4-2-sdcc-issue/235934)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [July 26, 2013, 9:53pm UTC](https://www.ruby-forum.com/t/gr-3-4-2-sdcc-issue/235934 "2013-07-26T21:53:15Z")

</div>

Hi, To get OpenBTS up and running together with the USRP1 I need gnuradio 3.4.2. These instructions here http://gnuradio.org/redmine/projects/gnuradio/wiki/UsingLibusrpWith3\_5 are a good way to go, did this several …

---

## [Hashes / Arrays für $arg\_PARAMETER](https://www.ruby-forum.com/t/hashes-arrays-fur-arg-parameter/235928)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [July 25, 2013, 2:52pm UTC](https://www.ruby-forum.com/t/hashes-arrays-fur-arg-parameter/235928 "2013-07-25T14:52:03Z")

</div>

Hello @all, Is it possible to define array / hashes in nginx? I have the following idea: nginx should check $arg\_PARAMETER which is defined by an array. If the right element in the array, then die access is permitted…

---

## [Issues compiling Ruby 1.9.33-p429 under AIX version 7](https://www.ruby-forum.com/t/issues-compiling-ruby-1-9-33-p429-under-aix-version-7/235263)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [June 11, 2013, 4:24pm UTC](https://www.ruby-forum.com/t/issues-compiling-ruby-1-9-33-p429-under-aix-version-7/235263 "2013-06-11T16:24:30Z")

</div>

While trying to build Ruby 1.9.33-p429 under AIX version 7, the \*./configure \*phase goes fine, but it failed during the make phase with the errors listed below. Any help is appreciated. Thank you basicsocket.c: In …

---

## [Feedback on Code/Script](https://www.ruby-forum.com/t/feedback-on-code-script/224986)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [December 10, 2012, 7:43am UTC](https://www.ruby-forum.com/t/feedback-on-code-script/224986 "2012-12-10T07:43:15Z")

</div>

Hey guys, I am currently creating a Vector Calculator program on Mac OSX. I have the main scripting done, and it will run from terminal. I plan on creating a graphical application using shoes once this is all complete…

---

## [\[ruby-trunk - Feature #6118\]\[Open\] Hash#keys\_of(values), returns related keys of given values](https://www.ruby-forum.com/t/ruby-trunk-feature-6118-open-hash-keys-of-values-returns-related-keys-of-given-values/217598)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 20, 2012, 2:23pm UTC](https://www.ruby-forum.com/t/ruby-trunk-feature-6118-open-hash-keys-of-values-returns-related-keys-of-given-values/217598 "2012-11-20T14:23:14Z")

</div>

Issue #6118 has been reported by Yui NARUSE. Feature #6118: Hash#keys\_of(values), returns related keys of given values Author: Yui NARUSE Status: Open Priority: Normal Assignee: Category: Target version: Hash#…

---

## [Question regarding JRubyParser.parse and org.jrubyparser.lexer.SyntaxException](https://www.ruby-forum.com/t/question-regarding-jrubyparser-parse-and-org-jrubyparser-lexer-syntaxexception/221685)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [August 21, 2012, 11:40am UTC](https://www.ruby-forum.com/t/question-regarding-jrubyparser-parse-and-org-jrubyparser-lexer-syntaxexception/221685 "2012-08-21T11:40:32Z")

</div>

How would I retrieve the line number of the syntax error in the rescue clause ? Regards Roger Example require “jruby-parser” begin root = JRubyParser.parse("begin b = foo(1) x = 'l begin x resc end x = 12 …

---

## [Script/server gives the error](https://www.ruby-forum.com/t/script-server-gives-the-error/216755)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 13, 2012, 3:37pm UTC](https://www.ruby-forum.com/t/script-server-gives-the-error/216755 "2012-02-13T15:37:14Z")

</div>

script/server gives the following error. =\> Booting WEBrick =\> Rails 2.3.8 application starting on http://0.0.0.0:3000 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active\_support/dependencies.rb:105:in const\_m…

---

## [A better way implement "it" the ruby way](https://www.ruby-forum.com/t/a-better-way-implement-it-the-ruby-way/216586)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 8, 2012, 7:57pm UTC](https://www.ruby-forum.com/t/a-better-way-implement-it-the-ruby-way/216586 "2012-02-08T19:57:04Z")

</div>

Hi, I come from the world of other programming languages and in the process of learning Ruby I am trying to implement a few algorithms. It would be great if you could assist me with proposal for implementing it in a …

---

## [RSpec Routing DSL](https://www.ruby-forum.com/t/rspec-routing-dsl/197699)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [October 19, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/rspec-routing-dsl/197699 "2010-10-19T20:35:24Z")

</div>

I started testing routes for the first time in Rails 3 this weekend during Rails Rumble. I was so exhausted that I found writing route specs a very painful task. I came up with my own routing DSL and I’d love to see i…

---

## [Spec w/o db:test:prepare](https://www.ruby-forum.com/t/spec-w-o-dbprepare/191936)

<div class="topic-metadata">

**Author:** [@churp](https://www.ruby-forum.com/u/churp)\
**Replies:** 4\
**Last updated:** [July 22, 2010, 12:05am UTC](https://www.ruby-forum.com/t/spec-w-o-dbprepare/191936 "2010-07-22T00:05:14Z")

</div>

HI All, I would like to perform my spec runs without the db:test:prepare rake prereq. It would be nice if I could alter spec to prereq db:test:purge only. Could you give me some advice/urls/pointers on how best to go…

---

## [XML file using Nokogiri gem](https://www.ruby-forum.com/t/xml-file-using-nokogiri-gem/177636)

<div class="topic-metadata">

**Author:** [@ghanshyam\_6786](https://www.ruby-forum.com/u/ghanshyam_6786)\
**Replies:** 4\
**Last updated:** [October 22, 2009, 3:13pm UTC](https://www.ruby-forum.com/t/xml-file-using-nokogiri-gem/177636 "2009-10-22T15:13:18Z")

</div>

Hello friends, Can you guys give me some idea about how to Create XML file using Nokogiri gem.

---

## [Sostituzione di "a capo" con \<br /\>](https://www.ruby-forum.com/t/sostituzione-di-a-capo-con-br/169105)

<div class="topic-metadata">

**Author:** [@softwarewin](https://www.ruby-forum.com/u/softwarewin)\
**Replies:** 4\
**Last updated:** [May 29, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/sostituzione-di-a-capo-con-br/169105 "2009-05-29T17:50:50Z")

</div>

Salve ragazzi, Ã¨ possibile effettuare la sostituzione automatica, in un testo inserito in textarea, degli “a capo” , da tastiera, con il tag html . Grazie sempre per l’aiuto! Luigi

---

## [Detect rogue DHCP server](https://www.ruby-forum.com/t/detect-rogue-dhcp-server/163105)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 10:13pm UTC](https://www.ruby-forum.com/t/detect-rogue-dhcp-server/163105 "2009-03-17T22:13:59Z")

</div>

I want to write a program to detect rogue DHCP server on my (switched) network. It would broadcast a “dummy” MAC address and see which DHCP server responds. My idea is to send a DHCPDISCOVER packet and see which DHCP …

---

## [Capistrano error: not allowed to execute '/usr/bin/nohup script/spin'](https://www.ruby-forum.com/t/capistrano-error-not-allowed-to-execute-usr-bin-nohup-script-spin/162949)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 9:06am UTC](https://www.ruby-forum.com/t/capistrano-error-not-allowed-to-execute-usr-bin-nohup-script-spin/162949 "2009-03-17T09:06:43Z")

</div>

I get the error that my assigned user isn’t allowed to execute script/ spin. I checked in my current/ directory and there is no script/spin file.

---

## [How to replace a string with given pattern?](https://www.ruby-forum.com/t/how-to-replace-a-string-with-given-pattern/147388)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 4\
**Last updated:** [September 1, 2008, 10:55am UTC](https://www.ruby-forum.com/t/how-to-replace-a-string-with-given-pattern/147388 "2008-09-01T10:55:41Z")

</div>

I want to replace a string with the new value on a given regular pattern. For example: “Hello”.replace("/H/", “h”) #=\> hello

---

## [Newbie: how to use link\_to to create ftp url to download a file?](https://www.ruby-forum.com/t/newbie-how-to-use-link-to-to-create-ftp-url-to-download-a-file/143334)

<div class="topic-metadata">

**Author:** [@Birgit\_A](https://www.ruby-forum.com/u/Birgit_A)\
**Replies:** 4\
**Last updated:** [July 21, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/newbie-how-to-use-link-to-to-create-ftp-url-to-download-a-file/143334 "2008-07-21T13:14:27Z")

</div>

Hi everyone, I’m struggling with link\_to. I’m trying to generate a link that will enable my web users to ftp a file. Table ‘calls’ contains a field ‘filename’. There the requirement to download this file via ftp. F…

---

## [Rss](https://www.ruby-forum.com/t/rss/131961)

<div class="topic-metadata">

**Author:** [@maite](https://www.ruby-forum.com/u/maite)\
**Replies:** 4\
**Last updated:** [March 15, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/rss/131961 "2008-03-15T16:10:06Z")

</div>

Hola buenas a todos, Estoy haciendo una web y tengo que tomar noticias por ejemplo de reuter y mostrarlas en mi web Que me tengo que empezar a leer o por donde me puedo guiar para hacer esto?? librerias o documentaci…

---

## [Attr\_writer vs attr\_accessor](https://www.ruby-forum.com/t/attr-writer-vs-attr-accessor/130194)

<div class="topic-metadata">

**Author:** [@ycsunil](https://www.ruby-forum.com/u/ycsunil)\
**Replies:** 4\
**Last updated:** [February 26, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/attr-writer-vs-attr-accessor/130194 "2008-02-26T12:11:58Z")

</div>

Hello all, From readings I understood that attr\_accessor is the one which has the property of attr\_reader and attr\_writer. If we define a variable as attr\_writer, we can use it to read and write as well. My question i…

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

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