# Top

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

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

---

## [Writing a SQL Query in Active Record?](https://www.ruby-forum.com/t/writing-a-sql-query-in-active-record/137065)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 5\
**Last updated:** [May 8, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/writing-a-sql-query-in-active-record/137065 "2008-05-08T20:16:40Z")

</div>

Hi, I am using the following code snippet for connecting to SQL Server through Active Record: require ‘rubygems’ require ‘active\_record’ ActiveRecord::Base.establish\_connection( :adapter =\> “sqlserver”, :host =\> “…

---

## [Ferret+Lucene Index](https://www.ruby-forum.com/t/ferret-lucene-index/127127)

<div class="topic-metadata">

**Author:** [@Pat\_Ferrel](https://www.ruby-forum.com/u/Pat_Ferrel)\
**Replies:** 5\
**Last updated:** [February 4, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/ferret-lucene-index/127127 "2008-02-04T13:01:45Z")

</div>

We use Nutch and Lucene for our heavy duty text analysis jobs but IÂ¹m trying to use ferrret to do some experiments. I understood that Ferret used the same index format as lucene but I cannot look into a lucene inde…

---

## [From method redefinition to classless Ruby](https://www.ruby-forum.com/t/from-method-redefinition-to-classless-ruby/111133)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 5\
**Last updated:** [August 4, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/from-method-redefinition-to-classless-ruby/111133 "2007-08-04T18:25:41Z")

</div>

Hi list Ara’s post about method redefinition was extremely rich intellectual food, took some time to digest, but I just thought I share my findings with you. http://ruby-smalltalk.blogspot.com/ Cheers Robert

---

## [Example code needed to play mp4 video in rails application](https://www.ruby-forum.com/t/example-code-needed-to-play-mp4-video-in-rails-application/246677)

<div class="topic-metadata">

**Author:** [@pxuiti](https://www.ruby-forum.com/u/pxuiti)\
**Replies:** 1\
**Last updated:** [October 2, 2018, 1:22am UTC](https://www.ruby-forum.com/t/example-code-needed-to-play-mp4-video-in-rails-application/246677 "2018-10-02T01:22:47Z")

</div>

example code needed to play mp4 video in rails application thanks

---

## [Rewrite to www EXCEPT for one directory](https://www.ruby-forum.com/t/rewrite-to-www-except-for-one-directory/222706)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 6, 2012, 8:38pm UTC](https://www.ruby-forum.com/t/rewrite-to-www-except-for-one-directory/222706 "2012-09-06T20:38:57Z")

</div>

I have the following in my nginx.conf to redirect to www. to deal with Google duplicate issues. server { server\_name example.com listen 80; location / { rewrite ^(.\*) http://www.example.com$1 permanent; } } Howe…

---

## [In \`\`': No such file or directory - getcwd (Errno::ENOENT)](https://www.ruby-forum.com/t/in-no-such-file-or-directory-getcwd-errno-enoent/82911)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 22, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/in-no-such-file-or-directory-getcwd-errno-enoent/82911 "2007-01-22T20:15:25Z")

</div>

Hi, I’m getting this error message when I’m using the back tick method (the one that return the stdout of a subshell command): when my ruby runs the following a=ls -l it returns No such file or directory - getcwd (Er…

---

## [Rewrite hyphen to underscore](https://www.ruby-forum.com/t/rewrite-hyphen-to-underscore/47949)

<div class="topic-metadata">

**Author:** [@dan.kubb](https://www.ruby-forum.com/u/dan.kubb)\
**Replies:** 1\
**Last updated:** [November 15, 2005, 2:49pm UTC](https://www.ruby-forum.com/t/rewrite-hyphen-to-underscore/47949 "2005-11-15T14:49:34Z")

</div>

I have a Routes question. Say I have the following routes.rb configuration: ActionController::Routing::Routes.draw do |map| map.connect ‘:controller/:action’, :action =\> ‘index’, :requirements =\> { :action =\> /(?:a-…

---

## [Rpsec gem binary not in bin?](https://www.ruby-forum.com/t/rpsec-gem-binary-not-in-bin/206483)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [May 2, 2011, 10:02pm UTC](https://www.ruby-forum.com/t/rpsec-gem-binary-not-in-bin/206483 "2011-05-02T22:02:47Z")

</div>

This is jruby 1.6.1. Installing the rspec gem doesn’t put rspec in bin, but it is in lib/ruby/gems/1.8/bin. Never ran into this behavior before, how can I fix this? Chris

---

## [Nginx recycles workers too often](https://www.ruby-forum.com/t/nginx-recycles-workers-too-often/184373)

<div class="topic-metadata">

**Author:** [@mindfrost82](https://www.ruby-forum.com/u/mindfrost82)\
**Replies:** 6\
**Last updated:** [March 30, 2010, 4:17am UTC](https://www.ruby-forum.com/t/nginx-recycles-workers-too-often/184373 "2010-03-30T04:17:59Z")

</div>

A couple of months ago I posted a topic because I thought my php-cgi processes were recycling too often (you can view it here http://forum.nginx.org/read.php?2,45516). After trying to troubleshoot this issue for mont…

---

## [Array.each](https://www.ruby-forum.com/t/array-each/185234)

<div class="topic-metadata">

**Author:** [@pcalcado](https://www.ruby-forum.com/u/pcalcado)\
**Replies:** 6\
**Last updated:** [March 17, 2010, 6:15am UTC](https://www.ruby-forum.com/t/array-each/185234 "2010-03-17T06:15:33Z")

</div>

I want to take an array of strings and convert each member to an integer. array.to\_i obviously doesn’t work. I tried array.each { |x| x = x.to\_i } and that doesn’t work either. aray.each\_index { |x| array\[x\] = array\[…

---

## [Collection\_select fails to work for "edit" but works great for "new"](https://www.ruby-forum.com/t/collection-select-fails-to-work-for-edit-but-works-great-for-new/177577)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 6\
**Last updated:** [October 20, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/collection-select-fails-to-work-for-edit-but-works-great-for-new/177577 "2009-10-20T18:40:43Z")

</div>

Hi, all, I setup a drop down box that has data populated by the database. This is for a simple application where by I am trying to add a new “Part”. A part has a category and sub category. The latter is optional. W…

---

## [Help: cache or not by cookie](https://www.ruby-forum.com/t/help-cache-or-not-by-cookie/170662)

<div class="topic-metadata">

**Author:** [@tonyy](https://www.ruby-forum.com/u/tonyy)\
**Replies:** 6\
**Last updated:** [September 4, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/help-cache-or-not-by-cookie/170662 "2009-09-04T18:08:46Z")

</div>

The requirement is: When a cookie exist, not return cached file and not cache the response, if the cookie not exist, return cached file and . cache the response. In the past, we use a standalone cacheserver, the confi…

---

## [Starling eaquivalent or jruby?](https://www.ruby-forum.com/t/starling-eaquivalent-or-jruby/157813)

<div class="topic-metadata">

**Author:** [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Replies:** 6\
**Last updated:** [January 16, 2009, 7:28am UTC](https://www.ruby-forum.com/t/starling-eaquivalent-or-jruby/157813 "2009-01-16T07:28:49Z")

</div>

Hi, I wanted to install the starling gem with jruby: jgem install starling-starling but it complains that it is a native extension. Any suggestion of an alternative usable with JRuby? I need a simple queuing system …

---

## [Find](https://www.ruby-forum.com/t/find/154128)

<div class="topic-metadata">

**Author:** [@njna](https://www.ruby-forum.com/u/njna)\
**Replies:** 6\
**Last updated:** [November 27, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/find/154128 "2008-11-27T15:46:27Z")

</div>

Qualcuno mi sa dare delucidazioni su find? magari se possibile con qulc esempio, grazie!

---

## [Detachen von Code](https://www.ruby-forum.com/t/detachen-von-code/140586)

<div class="topic-metadata">

**Author:** [@roslind](https://www.ruby-forum.com/u/roslind)\
**Replies:** 6\
**Last updated:** [June 18, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/detachen-von-code/140586 "2008-06-18T23:16:13Z")

</div>

Hallo Leute, ich habe eine Frage, die rein von der Formulierung her vielleicht schon aus der falschen Ecke kommt, daher korrigiert mich gern. Folgendes Problem: Ich habe einige Actions, welche ungeheuer viel Code aus…

---

## [Any workaround for sqlite3 login problem that works?](https://www.ruby-forum.com/t/any-workaround-for-sqlite3-login-problem-that-works/109344)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 6\
**Last updated:** [July 16, 2007, 11:11am UTC](https://www.ruby-forum.com/t/any-workaround-for-sqlite3-login-problem-that-works/109344 "2007-07-16T11:11:25Z")

</div>

Hi All, This is my first post to the list, and any list in general. Here it goes… I have the following: sqlite3-3.4.0 #the very latest from source gem sqlite3-ruby 1.2.1 When I create Radiant project on my local…

---

## [Flatulent-0.0.1 ascii captcha for the masses](https://www.ruby-forum.com/t/flatulent-0-0-1-ascii-captcha-for-the-masses/108396)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 6\
**Last updated:** [July 3, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/flatulent-0-0-1-ascii-captcha-for-the-masses/108396 "2007-07-03T19:52:04Z")

</div>

NAME flatulent : CAPTCHA for FIGLET. SYNOPSIS the flatulent gem provides brain dead simple ascii art captcha for ruby. URI http://codeforpeople.com/lib/ruby http://rubyforge.org/projects/codeforpeople INSTALL ge…

---

## ["1".to\_i \*2 == 1 && "1".to\_i\*2 == 2?](https://www.ruby-forum.com/t/1-to-i-2-1-1-to-i-2-2/70552)

<div class="topic-metadata">

**Author:** [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Replies:** 6\
**Last updated:** [September 30, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/1-to-i-2-1-1-to-i-2-2/70552 "2006-09-30T21:39:03Z")

</div>

Can anyone explain to me why “1”.to\_i\*2 is equal to 2 and “1”.to\_i \*2 is equale to 1? Thanks Giovanni

---

## [Problem building ruby-audio-0.1.1 on OSX 10.4.7](https://www.ruby-forum.com/t/problem-building-ruby-audio-0-1-1-on-osx-10-4-7/99516)

<div class="topic-metadata">

**Author:** [@Mike\_Spears](https://www.ruby-forum.com/u/Mike_Spears)\
**Replies:** 6\
**Last updated:** [July 25, 2006, 6:26pm UTC](https://www.ruby-forum.com/t/problem-building-ruby-audio-0-1-1-on-osx-10-4-7/99516 "2006-07-25T18:26:40Z")

</div>

Hi, I’m trying to install ruby-audio on OS X. The instructions for installing say to run ‘rake’ but when I do, I get the following error: /usr/bin/ld: Undefined symbols: \_cNArray \_na\_sizeof narray is a prerequisite…

---

## [:dependent =\> :destroy](https://www.ruby-forum.com/t/dependent-destroy/54685)

<div class="topic-metadata">

**Author:** [@mischa78](https://www.ruby-forum.com/u/mischa78)\
**Replies:** 6\
**Last updated:** [March 14, 2006, 11:45pm UTC](https://www.ruby-forum.com/t/dependent-destroy/54685 "2006-03-14T23:45:31Z")

</div>

Hi, There is something I don’t understand about :dependent =\> :destroy. I hope someone can help me. Consider this code: class Folder \< ActiveRecord::Base has\_many :myfiles has\_many :folders has\_many :group\_folders,…

---

## [When to use Cucumber vs RSpec](https://www.ruby-forum.com/t/when-to-use-cucumber-vs-rspec/240217)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [May 1, 2014, 3:40pm UTC](https://www.ruby-forum.com/t/when-to-use-cucumber-vs-rspec/240217 "2014-05-01T15:40:33Z")

</div>

Background: I’m pretty new to Ruby. I’m pretty new to TDD/BDD. I’m reading The RSpec Book. I’m building a command line script to move files around. I’m using GLI (GitHub - davetron5000/gli: Make awesome command-line ap…

---

## [Can another DUC chain be added to USRP N210?](https://www.ruby-forum.com/t/can-another-duc-chain-be-added-to-usrp-n210/223314)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [September 29, 2012, 6:47pm UTC](https://www.ruby-forum.com/t/can-another-duc-chain-be-added-to-usrp-n210/223314 "2012-09-29T18:47:12Z")

</div>

Hello All, I am using a USRP N210. When i set the subdev spec for my basic RX daughterboard as “A:A A:B” I can receive two channels. However, if I try to do something similar for the basic TX I get an error like “The…

---

## [Permission Denied Error](https://www.ruby-forum.com/t/permission-denied-error/219094)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 4\
**Last updated:** [April 22, 2012, 12:33am UTC](https://www.ruby-forum.com/t/permission-denied-error/219094 "2012-04-22T00:33:27Z")

</div>

I am seeing some error like below in my nginx error log: 2012/04/20 11:51:52 \[crit\] 21437#0: \*2548 open() “/var/cache/nginx/fastcgi\_temp/5/00/0000000005” failed (13: Permission denied) while reading upstream, client: …

---

## [Best way to test tasks](https://www.ruby-forum.com/t/best-way-to-test-tasks/210236)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [August 3, 2011, 7:08am UTC](https://www.ruby-forum.com/t/best-way-to-test-tasks/210236 "2011-08-03T07:08:10Z")

</div>

I have a task that runs frequently in order to get/import data from another system. Because of this I wanted to know which is the best way to test tasks in order to create the tests needed. Thanks in advance.

---

## [Testing framework in 44 lines of ruby](https://www.ruby-forum.com/t/testing-framework-in-44-lines-of-ruby/208223)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 12, 2011, 8:13pm UTC](https://www.ruby-forum.com/t/testing-framework-in-44-lines-of-ruby/208223 "2011-06-12T20:13:16Z")

</div>

Hi everyone, I just came across this post and was wondering if this is on target with how RSpec works under the hood? Patrick J. Collins http://collinatorstudios.com

---

## [Re: update gem in windows](https://www.ruby-forum.com/t/re-update-gem-in-windows/175027)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 4\
**Last updated:** [September 6, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/re-update-gem-in-windows/175027 "2009-09-06T16:33:38Z")

</div>

2009/9/6 Emanuele Arza’ removed\_email\_address@domain.invalid Salve ho letto la risposta di cangiano e mi ha illuminato. Tutto questo è nato da un equivoco dovuto alla mia inesperienza nel nuovo mondo. Credevo che on…

---

## [\[ANN\] Announcing the Winner of the Template Contest](https://www.ruby-forum.com/t/ann-announcing-the-winner-of-the-template-contest/157706)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 4\
**Last updated:** [January 14, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/ann-announcing-the-winner-of-the-template-contest/157706 "2009-01-14T22:21:02Z")

</div>

The winner of our Template Contest was Roasters by Paul du Coudray, receiving an overwhelming 79 of 80 votes cast. Some choice comments left by voters: “Great use of snippets for navigation and rss, and Archives for a…

---

## [Permissions for an sqlite3 db? rake aborted](https://www.ruby-forum.com/t/permissions-for-an-sqlite3-db-rake-aborted/121609)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 4\
**Last updated:** [November 30, 2007, 6:25am UTC](https://www.ruby-forum.com/t/permissions-for-an-sqlite3-db-rake-aborted/121609 "2007-11-30T06:25:43Z")

</div>

It’s not clear to me why the rake fails. Would it be helpful to post the trace? seemed spammy. I assume it’s some sort of permissions issue, although a google search turned up other ideas (which seemed unlikely so …

---

## [Newb Menu Question](https://www.ruby-forum.com/t/newb-menu-question/115513)

<div class="topic-metadata">

**Author:** [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Replies:** 4\
**Last updated:** [September 26, 2007, 4:31am UTC](https://www.ruby-forum.com/t/newb-menu-question/115513 "2007-09-26T04:31:59Z")

</div>

Hey all, I’ve got my Radiant shell up and running and I’m trying to figure things out. One thing I’ve run across is building a menu and highlighting the current page. Here’s what I have right now. It works but it’s…

---

## [Multiple typo app?](https://www.ruby-forum.com/t/multiple-typo-app/67099)

<div class="topic-metadata">

**Author:** [@Hemant\_S](https://www.ruby-forum.com/u/Hemant_S)\
**Replies:** 4\
**Last updated:** [September 1, 2006, 2:51am UTC](https://www.ruby-forum.com/t/multiple-typo-app/67099 "2006-09-01T02:51:33Z")

</div>

Is it possible to host multiple sites on the same typo app?

---

## [Problem with acts\_as\_paranoid: "ArgumentError: Unknown key(s](https://www.ruby-forum.com/t/problem-with-acts-as-paranoid-argumenterror-unknown-key-s/49970)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 4\
**Last updated:** [December 13, 2005, 10:52pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-paranoid-argumenterror-unknown-key-s/49970 "2005-12-13T22:52:58Z")

</div>

Here’s the full error: Error: test\_add\_message\_to\_existing\_ticket(TicketTest): ArgumentError: Unknown key(s): group /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active\_support/core\_ext/hash/keys.rb:48:in ass…

---

## [Prawn relative-path image](https://www.ruby-forum.com/t/prawn-relative-path-image/167060)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 2\
**Last updated:** [May 3, 2009, 2:35am UTC](https://www.ruby-forum.com/t/prawn-relative-path-image/167060 "2009-05-03T02:35:39Z")

</div>

Hi, I would like to show an image on PDF (via prawn pdf.image). I am using a photo\_for helper to retrieve an image i.e. photo\_for(@account, :small), which yields Is there a way to use image relative path with pdf.ima…

---

## [Unable to install Cucumber](https://www.ruby-forum.com/t/unable-to-install-cucumber/244380)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [April 1, 2016, 11:12pm UTC](https://www.ruby-forum.com/t/unable-to-install-cucumber/244380 "2016-04-01T23:12:33Z")

</div>

I am trying to install Cucumber on my Windows 7 machine but getting the below mentioned error. Can any body help me on this. C:\\Ruby22-x64\\Dev kit\>gem install cucumber ERROR: Could not find a valid gem ‘cucumber’ (\>=…

---

## [Location directive not working](https://www.ruby-forum.com/t/location-directive-not-working/240059)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 7\
**Last updated:** [March 26, 2014, 10:39pm UTC](https://www.ruby-forum.com/t/location-directive-not-working/240059 "2014-03-26T22:39:01Z")

</div>

I set up two upstream servers (server 1 and server 2) where I geotarget people from specific countries: A People from country A go to server 1 and the others go to server 2. There are some uri s that must be served by…

---

## [GR-UHD detected ABI compatibility mismatch with UHD library](https://www.ruby-forum.com/t/gr-uhd-detected-abi-compatibility-mismatch-with-uhd-library/239739)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 12, 2014, 8:33pm UTC](https://www.ruby-forum.com/t/gr-uhd-detected-abi-compatibility-mismatch-with-uhd-library/239739 "2014-03-12T20:33:31Z")

</div>

Hi All, After installing UHD and GNU Radio, when I execute any flowgraph using the USRP, I find this error: \*RuntimeError: \* GR-UHD detected ABI compatibility mismatch with UHD library. GR-UHD was build against ABI…

---

## [Strange minitest error when using files in test](https://www.ruby-forum.com/t/strange-minitest-error-when-using-files-in-test/236349)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 7\
**Last updated:** [August 29, 2013, 12:17pm UTC](https://www.ruby-forum.com/t/strange-minitest-error-when-using-files-in-test/236349 "2013-08-29T12:17:09Z")

</div>

This is quite systematic when a test use files. For instance, I have a minitest/spec test with Utils.compare\_file(file\_1, file\_2).must\_equal true When the comparison gives true, no problem. When the comparison gives …

---

## [Terminal Terminator not found command rails](https://www.ruby-forum.com/t/terminal-terminator-not-found-command-rails/227011)

<div class="topic-metadata">

**Author:** [@dmitrij\_b](https://www.ruby-forum.com/u/dmitrij_b)\
**Replies:** 7\
**Last updated:** [February 28, 2013, 10:49pm UTC](https://www.ruby-forum.com/t/terminal-terminator-not-found-command-rails/227011 "2013-02-28T22:49:48Z")

</div>

I install on ubuntu terminal terminator. I want create new project and show error: The program ‘rails’ can be found in the following packages: rails ruby-railties-3.2 In empty terminal no problem. How solve this pro…

---

## [Rewrite all directory URLs with certain exceptions](https://www.ruby-forum.com/t/rewrite-all-directory-urls-with-certain-exceptions/224840)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [November 28, 2012, 2:04pm UTC](https://www.ruby-forum.com/t/rewrite-all-directory-urls-with-certain-exceptions/224840 "2012-11-28T14:04:30Z")

</div>

Hello I have urls like example.com/123 I need them rewritten to Example Domain However, I want to skip certain directories from rewrite eg. example.com/status example.com/admin right now I have this: if (!-e $req…

---

## [Unexpected LookupError using gpsdo](https://www.ruby-forum.com/t/unexpected-lookuperror-using-gpsdo/218109)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 21, 2012, 5:59pm UTC](https://www.ruby-forum.com/t/unexpected-lookuperror-using-gpsdo/218109 "2012-03-21T17:59:18Z")

</div>

Hi, I have bought two gpsdos and install them to my usrp n210. Then I congfiured them step by step according to the following link provided by ettus LLC http://files.ettus.com/uhd\_docs/manual/html/gpsdo.html. After a…

---

## [Rails 3.0.3 - can't render in json](https://www.ruby-forum.com/t/rails-3-0-3-cant-render-in-json/201354)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [January 10, 2011, 1:01pm UTC](https://www.ruby-forum.com/t/rails-3-0-3-cant-render-in-json/201354 "2011-01-10T13:01:36Z")

</div>

I’ve found a strange (to me) response from rails if I try to render output as json, whereas xml is fine. From the logs. For example, here are the logs for a simple query (from the browser) to list all “jobs”: Started …

---

## [Paperclip generating crap urls on server, works on dev](https://www.ruby-forum.com/t/paperclip-generating-crap-urls-on-server-works-on-dev/193122)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 7\
**Last updated:** [August 14, 2010, 6:53pm UTC](https://www.ruby-forum.com/t/paperclip-generating-crap-urls-on-server-works-on-dev/193122 "2010-08-14T18:53:09Z")

</div>

Hi, I have the following: has\_attached\_file :data, :styles =\> {:theora =\> {:format =\> “ogv”}, :still =\> {:format =\> “jpg”}, :small =\> {:format =\> “jpg”}}, :url =\> “/uploads/products/:basename:suffix.:extension”, …

---

## [Why doesn't Array#product return Enumerator?](https://www.ruby-forum.com/t/why-doesnt-array-product-return-enumerator/175209)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 7\
**Last updated:** [March 31, 2010, 12:09am UTC](https://www.ruby-forum.com/t/why-doesnt-array-product-return-enumerator/175209 "2010-03-31T00:09:58Z")

</div>

e$B1sF#$G$9!#e(B Array#product e$B$Oe(B Enumerator e$B$G$J$/G\[Ns$rJV$7$^$9$,!“2?$+M}M3$,e(B e$B$”$C$F$N$3$H$G$7$g$&$+!#e(B Array#permutation e$B$de(B combination e$B$N$h$&$Ke(B Enumerator e$B$rJV$7$?J}$,e(B e$B\<+A3…

---

## [IO.expect: where can I find documentation?](https://www.ruby-forum.com/t/io-expect-where-can-i-find-documentation/121454)

<div class="topic-metadata">

**Author:** [@thechak](https://www.ruby-forum.com/u/thechak)\
**Replies:** 7\
**Last updated:** [November 30, 2007, 3:50am UTC](https://www.ruby-forum.com/t/io-expect-where-can-i-find-documentation/121454 "2007-11-30T03:50:50Z")

</div>

Hey all – Can anyone point me to the documentation (or the source!) that defines the IO.expect method (parameters, return values, etc.)? I can’t seem to find it anywhere. Also, I’m interested in extending this routin…

---

## [Problem in using connect(gr.file\_source, usrp.sink\_s)](https://www.ruby-forum.com/t/problem-in-using-connect-gr-file-source-usrp-sink-s/109144)

<div class="topic-metadata">

**Author:** [@Eliane\_Hook](https://www.ruby-forum.com/u/Eliane_Hook)\
**Replies:** 7\
**Last updated:** [July 25, 2007, 1:08am UTC](https://www.ruby-forum.com/t/problem-in-using-connect-gr-file-source-usrp-sink-s/109144 "2007-07-25T01:08:48Z")

</div>

Hi, I am a newbie with GNURADIO and USRP. I am trying to capture data that comes thru the USB cable from the USRP board and transmit it back to the USRP board. I was reading thru the email archives and I came across …

---

## [Can't get Ruby on Rails with Apache and FastCGI](https://www.ruby-forum.com/t/cant-get-ruby-on-rails-with-apache-and-fastcgi/103625)

<div class="topic-metadata">

**Author:** [@kpmcnamee](https://www.ruby-forum.com/u/kpmcnamee)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 6:49pm UTC](https://www.ruby-forum.com/t/cant-get-ruby-on-rails-with-apache-and-fastcgi/103625 "2007-05-10T18:49:03Z")

</div>

Hi! Environment Solaris 10 Apache 2.2.0 with fcgid\_module Ruby 1.8.4 Rails 1.2.3 I am trying to get FastCGI working. Initially I used “dispatch.cgi” successfully but when I switched to “dispatch.fcgi” I get ====…

---

## [Adding entry breaks index](https://www.ruby-forum.com/t/adding-entry-breaks-index/85123)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 7\
**Last updated:** [February 15, 2007, 2:43am UTC](https://www.ruby-forum.com/t/adding-entry-breaks-index/85123 "2007-02-15T02:43:09Z")

</div>

Our ferret 0.10.13 index has been slowly growing on our debian server and has just got up over 14,000 records. Yesterday I randomly noticed that one search I did was suddenly giving whack, unexpected results. I have s…

---

## [Question developing a new block](https://www.ruby-forum.com/t/question-developing-a-new-block/242215)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [June 6, 2015, 6:13am UTC](https://www.ruby-forum.com/t/question-developing-a-new-block/242215 "2015-06-06T06:13:23Z")

</div>

Hi, i read some tutorials about creating new blocks. Iam asking my self a simple question and i think i couldnt find the answer: How is it possible to fill a python grc variable block with data from another block C+…

---

## [Gr-fosphor. builds OK, throws runtime error](https://www.ruby-forum.com/t/gr-fosphor-builds-ok-throws-runtime-error/231734)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [August 27, 2014, 1:30pm UTC](https://www.ruby-forum.com/t/gr-fosphor-builds-ok-throws-runtime-error/231734 "2014-08-27T13:30:40Z")

</div>

Ubuntu 14.04. Have updated to gnuradio 3.7.5git-194-g76a271ac, seems to run fine. I rebuilt / reinstalled gr-fosphor. No problems with the build. The location of Nvidia’s OpenCL library changed from Ubuntu 13.10 to 1…

---

## [\[Cucumber\] When do you log in? (was- Adding a step definition)](https://www.ruby-forum.com/t/cucumber-when-do-you-log-in-was-adding-a-step-definition/162861)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 3\
**Last updated:** [March 14, 2009, 10:30pm UTC](https://www.ruby-forum.com/t/cucumber-when-do-you-log-in-was-adding-a-step-definition/162861 "2009-03-14T22:30:10Z")

</div>

On Sat, Mar 14, 2009 at 10:50 AM, Mark W. removed\_email\_address@domain.invalid wrote: On Sat, Mar 14, 2009 at 5:59 AM, Matt W. removed\_email\_address@domain.invalid wrote: I’m not sure if I like this - dependency betw…

---

## [Bug in IRB](https://www.ruby-forum.com/t/bug-in-irb/146838)

<div class="topic-metadata">

**Author:** [@crazyhat](https://www.ruby-forum.com/u/crazyhat)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/bug-in-irb/146838 "2008-08-26T18:40:52Z")

</div>

Running ruby version ruby 1.8.6 (2007-03-13 patchlevel 0) \[i386-mswin32\] with Rails 1.2.3, getting the following error trying to create one of my app objects from the console: Errno::ENOMEM: Not enough space from c:/…

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

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