# Top

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

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

---

## [Using IronRuby from Ruby (newbie)](https://www.ruby-forum.com/t/using-ironruby-from-ruby-newbie/180756)

<div class="topic-metadata">

**Author:** [@writeameer](https://www.ruby-forum.com/u/writeameer)\
**Replies:** 7\
**Last updated:** [January 2, 2010, 3:52am UTC](https://www.ruby-forum.com/t/using-ironruby-from-ruby-newbie/180756 "2010-01-02T03:52:10Z")

</div>

Hello, I’m working in an environment that’s very Ruby heavy and I’ve never used ruby before. I need to be able to access Windows performance counters in from a Windows service is written in native Ruby (not IronRuby).…

---

## [How to match and count](https://www.ruby-forum.com/t/how-to-match-and-count/179320)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 7\
**Last updated:** [November 23, 2009, 9:33am UTC](https://www.ruby-forum.com/t/how-to-match-and-count/179320 "2009-11-23T09:33:49Z")

</div>

Hello, I have been using awk for some text handling. Now I’m beginning Ruby (really newbie) and want to find a way in ruby to do this with awk: awk ‘{if ($4~/something/) {i+=1}} END {print i}’ file.txt That means i…

---

## [OFX-parser](https://www.ruby-forum.com/t/ofx-parser/174368)

<div class="topic-metadata">

**Author:** [@prabesh](https://www.ruby-forum.com/u/prabesh)\
**Replies:** 1\
**Last updated:** [August 25, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/ofx-parser/174368 "2009-08-25T23:22:09Z")

</div>

I am trying to parser a ofx file .I have installed ofx-parser gem. But I am getting error: no such file to load – hpricot\_scan I have checked my gem folder ,I have got hpricot-0.8.1 which is \> hpricot-0.6(requirement…

---

## [Tests for my gem cannot find classes in gems lib directory](https://www.ruby-forum.com/t/tests-for-my-gem-cannot-find-classes-in-gems-lib-directory/166138)

<div class="topic-metadata">

**Author:** [@Anthony\_Broad-Crawf](https://www.ruby-forum.com/u/Anthony_Broad-Crawf)\
**Replies:** 1\
**Last updated:** [April 22, 2009, 9:45am UTC](https://www.ruby-forum.com/t/tests-for-my-gem-cannot-find-classes-in-gems-lib-directory/166138 "2009-04-22T09:45:58Z")

</div>

I am writing a gem and using RSpec to drive my development. However, whenever I describe a class within the gems lib I get an uninitialized constant error. I am placing my folder structure, spec.rake and first spec …

---

## [\[FEEDBACK\] on new site](https://www.ruby-forum.com/t/feedback-on-new-site/159258)

<div class="topic-metadata">

**Author:** [@Daly](https://www.ruby-forum.com/u/Daly)\
**Replies:** 7\
**Last updated:** [February 5, 2009, 8:54pm UTC](https://www.ruby-forum.com/t/feedback-on-new-site/159258 "2009-02-05T20:54:29Z")

</div>

Hi, I just released this new dating site built in Ruby on Rails called http://moredating.com. I was wondering if you guys could check it out and provide any feedback you may have. I’m especially interested in any sec…

---

## [Basic select drop down returning the right params](https://www.ruby-forum.com/t/basic-select-drop-down-returning-the-right-params/148481)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 7\
**Last updated:** [September 14, 2008, 6:21am UTC](https://www.ruby-forum.com/t/basic-select-drop-down-returning-the-right-params/148481 "2008-09-14T06:21:04Z")

</div>

Anyone mind helping with he following, whatever I do I can’t get it to work quite right, I want the selection dropdown to show a list of enquiries maybe by Enquiry.firstname and when selected the show action to displa…

---

## [Validation messages without field names?](https://www.ruby-forum.com/t/validation-messages-without-field-names/147506)

<div class="topic-metadata">

**Author:** [@polarapfel](https://www.ruby-forum.com/u/polarapfel)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/validation-messages-without-field-names/147506 "2008-09-02T16:24:53Z")

</div>

Hi everybody, I am getting involved deeper and deeper with Rails development and basically I love it. However, as Rails was born in the English language world, I find it rather demanding to develop with other end use…

---

## [Help needed with where and how best to set a param](https://www.ruby-forum.com/t/help-needed-with-where-and-how-best-to-set-a-param/137754)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 7\
**Last updated:** [May 23, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/help-needed-with-where-and-how-best-to-set-a-param/137754 "2008-05-23T23:33:02Z")

</div>

Once again, I’m writing about a pop-up window issue and need some help. Trying to insert a new record prior to the pop-up and other sorts of things has proven to be a much bigger problem so instead I’ll have a default…

---

## [Why not "truncation towards zero"?](https://www.ruby-forum.com/t/why-not-truncation-towards-zero/130899)

<div class="topic-metadata">

**Author:** [@Artem\_V](https://www.ruby-forum.com/u/Artem_V)\
**Replies:** 1\
**Last updated:** [March 4, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/why-not-truncation-towards-zero/130899 "2008-03-04T12:01:23Z")

</div>

Is it intentional that (-1/2) gives -1 ? Please, give me links if there is any rationale. (i have ruby 1.8.6 (2007-03-13 patchlevel 0) \[i386-mswin32\] ) Ruby puts -1/2; # =\> -1 // C ( #include \<stdio.h\> int main…

---

## [Error! Ruby on Rails based on FastCGI, Hello world!](https://www.ruby-forum.com/t/error-ruby-on-rails-based-on-fastcgi-hello-world/125111)

<div class="topic-metadata">

**Author:** [@snoop1990](https://www.ruby-forum.com/u/snoop1990)\
**Replies:** 7\
**Last updated:** [January 6, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/error-ruby-on-rails-based-on-fastcgi-hello-world/125111 "2008-01-06T22:51:17Z")

</div>

Hey, I try to do my first steps in Ruby, and designed an “Hello World!” Application. Now I want to install this Application on an Apache server. I copied it to the “/public\_html/” Directory here: (the application is …

---

## [Setups two rails app in different location](https://www.ruby-forum.com/t/setups-two-rails-app-in-different-location/122950)

<div class="topic-metadata">

**Author:** [@Francisco\_Valladoli](https://www.ruby-forum.com/u/Francisco_Valladoli)\
**Replies:** 7\
**Last updated:** [December 13, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/setups-two-rails-app-in-different-location/122950 "2007-12-13T22:17:51Z")

</div>

Hi. I have two different rails app under the same server, using the same IP. How can do it? my primary web site is working correctly but the second one no. this is my config.

---

## [Meta description from page part](https://www.ruby-forum.com/t/meta-description-from-page-part/118772)

<div class="topic-metadata">

**Author:** [@andrewneal](https://www.ruby-forum.com/u/andrewneal)\
**Replies:** 7\
**Last updated:** [November 9, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/meta-description-from-page-part/118772 "2007-11-09T23:16:39Z")

</div>

I would like to insert a meta description into my pages. This would be of the form: I realise that it would not be correct to use the following construct: Is there any way to insert the output from a radius tag into…

---

## [How rails check and fetch Page Cache file?](https://www.ruby-forum.com/t/how-rails-check-and-fetch-page-cache-file/104490)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 7\
**Last updated:** [May 18, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/how-rails-check-and-fetch-page-cache-file/104490 "2007-05-18T20:41:19Z")

</div>

After posting this question page cache more than 100K files inside a single directory? http://www.ruby-forum.com/topic/108450#new I’ve been look into how page caching works. Now I’ve rewritten page\_cache\_file(path) (…

---

## [How to create run\_tests from run\_tests.in](https://www.ruby-forum.com/t/how-to-create-run-tests-from-run-tests-in/83757)

<div class="topic-metadata">

**Author:** [@Trond\_D](https://www.ruby-forum.com/u/Trond_D)\
**Replies:** 7\
**Last updated:** [January 29, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/how-to-create-run-tests-from-run-tests-in/83757 "2007-01-29T20:51:27Z")

</div>

Hi! I am creating a signal processing block for gnuradio (svn), but I can not figure out how to generate run\_tests from run\_tests.in. The m4 macro file and Makefile.am from the python folder are included in this mail…

---

## [Ruby 1.8.5 on Mac OS X](https://www.ruby-forum.com/t/ruby-1-8-5-on-mac-os-x/77400)

<div class="topic-metadata">

**Author:** [@doog](https://www.ruby-forum.com/u/doog)\
**Replies:** 7\
**Last updated:** [November 28, 2006, 6:01am UTC](https://www.ruby-forum.com/t/ruby-1-8-5-on-mac-os-x/77400 "2006-11-28T06:01:57Z")

</div>

On Mac OS X 10.4.8, Ruby 1.8.2 is installed in /usr/bin/ruby I installed RubyGems and several libraries. I needed to upgrade to the latest version, so I downloaded Ruby 1.8.5 source from: http://www2.ruby-lang.org/en…

---

## [Newbie: class attribute accessors?](https://www.ruby-forum.com/t/newbie-class-attribute-accessors/73259)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 7\
**Last updated:** [October 23, 2006, 6:39pm UTC](https://www.ruby-forum.com/t/newbie-class-attribute-accessors/73259 "2006-10-23T18:39:53Z")

</div>

Hello, I was wondering if it is possible to get the automatically generated accessors (attr\_accessor, etc…) for class attributes. From what I found on the internet, it seems that the usual syntax wouldn’t work. Thank…

---

## [The Mystery Deepens: GNU Radio on Intel-Mac](https://www.ruby-forum.com/t/the-mystery-deepens-gnu-radio-on-intel-mac/71220)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 7\
**Last updated:** [October 10, 2006, 10:41pm UTC](https://www.ruby-forum.com/t/the-mystery-deepens-gnu-radio-on-intel-mac/71220 "2006-10-10T22:41:07Z")

</div>

I can easily show on our brand new 20" Intel-iMac that a “recent” (Wednesday) SVN checkout of GNU Radio will compile, check, and install, but USB transport doesn’t work. On a similarly equipped PPC-Mac, USB transpo…

---

## [Override method in ActiveRecord](https://www.ruby-forum.com/t/override-method-in-activerecord/102199)

<div class="topic-metadata">

**Author:** [@kronidas](https://www.ruby-forum.com/u/kronidas)\
**Replies:** 7\
**Last updated:** [August 15, 2006, 8:14pm UTC](https://www.ruby-forum.com/t/override-method-in-activerecord/102199 "2006-08-15T20:14:54Z")

</div>

Hello, there is a method ActiveRecord::Base#exists? . I would like to override this method in a class ActiveRecord. Could anyone tell me how to do it? TIA

---

## [Global variables considered harmful?](https://www.ruby-forum.com/t/global-variables-considered-harmful/101953)

<div class="topic-metadata">

**Author:** [@darren\_kirby](https://www.ruby-forum.com/u/darren_kirby)\
**Replies:** 7\
**Last updated:** [August 8, 2006, 11:12pm UTC](https://www.ruby-forum.com/t/global-variables-considered-harmful/101953 "2006-08-08T23:12:41Z")

</div>

Hello all, I have a Ruby script here that acts like a regular Unix program, including accepting a large number of command-line options/arguments. After processing some are simple flags (ie: nil or 1) and some are t…

---

## [M:n or multiple 1:n?](https://www.ruby-forum.com/t/m-n-or-multiple-1-n/54514)

<div class="topic-metadata">

**Author:** [@krahe](https://www.ruby-forum.com/u/krahe)\
**Replies:** 7\
**Last updated:** [March 8, 2006, 9:55pm UTC](https://www.ruby-forum.com/t/m-n-or-multiple-1-n/54514 "2006-03-08T21:55:57Z")

</div>

I have a Newbee question: i have three tables and want to connect them. so is it stupid to make a triple m:n (rails style xs\_ys\_zs) or do i have to make a new table (newtable) where i got multiple 1:n? the habtm (has…

---

## [Rou](https://www.ruby-forum.com/t/rou/244033)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [February 12, 2016, 8:57pm UTC](https://www.ruby-forum.com/t/rou/244033 "2016-02-12T20:57:41Z")

</div>

Hello geeks, Help me in solving following error. No route matches {:action=\>“create\_banner\_text”, :controller=\>“websites”, :id=\>nil} missing required keys: \[:id\] Detail is given on With Regards, Ankit R.

---

## [Replace find\_by\_sql with find (Rails 2.3)](https://www.ruby-forum.com/t/replace-find-by-sql-with-find-rails-2-3/241714)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [April 28, 2015, 5:53am UTC](https://www.ruby-forum.com/t/replace-find-by-sql-with-find-rails-2-3/241714 "2015-04-28T05:53:20Z")

</div>

I have an app running Rails 2.3 with Ruby 1.8.7. Upgrading isnot in the cards for a while. I am trying to make it database agnostic so I want to eliminate the use of find\_by\_sql. I have got it down to only one find le…

---

## [When will the build-gnuradio script be available for Fedora 21?](https://www.ruby-forum.com/t/when-will-the-build-gnuradio-script-be-available-for-fedora-21/234204)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [February 14, 2015, 6:06pm UTC](https://www.ruby-forum.com/t/when-will-the-build-gnuradio-script-be-available-for-fedora-21/234204 "2015-02-14T18:06:34Z")

</div>

I just switched from fedora 20 to fedora 21. When will build-gnuradio be available for fedora 21? Thank You Tom

---

## [Unable to log in usrpe 110 to get access to gnuradio on screen?](https://www.ruby-forum.com/t/unable-to-log-in-usrpe-110-to-get-access-to-gnuradio-on-screen/230048)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [May 31, 2014, 11:23am UTC](https://www.ruby-forum.com/t/unable-to-log-in-usrpe-110-to-get-access-to-gnuradio-on-screen/230048 "2014-05-31T11:23:14Z")

</div>

Hi, I made a reboot of the usrp e110. I got on the screen a button login. But I’m unable to login with a mouse. In fact, the mouse doesn’t work on usrp. But the mouse works well on my laptop. In fact, I even connecte…

---

## [OmniAuth and Rails 3.1](https://www.ruby-forum.com/t/omniauth-and-rails-3-1/212139)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 23, 2011, 12:33pm UTC](https://www.ruby-forum.com/t/omniauth-and-rails-3-1/212139 "2011-09-23T12:33:48Z")

</div>

Hi guys, I’ve been struggling with OmniAuth for Twitter for a past few days and I can’t get it to work with Rails 3.1 I’m not sure if this is a Twitter problem, or an OmniAuth problem. I create the application on twi…

---

## [D-Star with gnuradio?](https://www.ruby-forum.com/t/d-star-with-gnuradio/201475)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 9, 2011, 5:29am UTC](https://www.ruby-forum.com/t/d-star-with-gnuradio/201475 "2011-01-09T05:29:17Z")

</div>

Hi people, Have anyone successfully built a D-Star transmitter with gnuradio blocks? Best regards, Rafael D.

---

## [MySQL update BLOB](https://www.ruby-forum.com/t/mysql-update-blob/200882)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [December 24, 2010, 8:28am UTC](https://www.ruby-forum.com/t/mysql-update-blob/200882 "2010-12-24T08:28:10Z")

</div>

Hi I am trying to update a blob column from Ruby script into MySQL DB. The script is running on PC and DB on Linux host. The problem I see is that only 255 bytes of data being stored , is there any way to deal with th…

---

## [Defining {file,line,name} methods for each backtrace entry](https://www.ruby-forum.com/t/defining-file-line-name-methods-for-each-backtrace-entry/174548)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 4\
**Last updated:** [August 28, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/defining-file-line-name-methods-for-each-backtrace-entry/174548 "2009-08-28T15:56:59Z")

</div>

ã€€ãƒãƒƒã‚¯ãƒˆãƒ¬ãƒ¼ã‚¹ã®å„è¡Œã¯æ•´å½¢æ¸ˆã¿æ–‡å­—åˆ—ã«ãªã£ã¦ã„ã¾ã™ãŒã€ãã‚Œã‚’ ã¾ãŸãƒ‘ãƒ¼ã‚¹ã—ã¦åˆ‡ã‚Šå‡ºã™ã‚ˆã†ãªå‡¦ç†ãŒã©ã†ã«ã‚‚è¦‹ã¦ã„ã‚‰ã‚Œã¾ã›ã‚“ã€‚ {file,line,name} ã®ã‚ˆã†ãªã‚¢ã…

---

## [How do I solve/debug "gem update" problem?](https://www.ruby-forum.com/t/how-do-i-solve-debug-gem-update-problem/157218)

<div class="topic-metadata">

**Author:** [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Replies:** 4\
**Last updated:** [January 8, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/how-do-i-solve-debug-gem-update-problem/157218 "2009-01-08T19:58:42Z")

</div>

I used InstantRails 2.0 to install RoR on Win XP SP3. It brought rails 2.0.2 and I am having problems updating to rails 2.2.2 After initial installation I run “gem update—system” w/o a problem. However the subsequent …

---

## [Getting value from time\_select](https://www.ruby-forum.com/t/getting-value-from-time-select/150439)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [October 8, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/getting-value-from-time-select/150439 "2008-10-08T17:35:13Z")

</div>

When I try to get the value of a time\_select into a flash\[:notice\], just to check it, I get nil. What ever I try I can’t deal with it. It goes into the db alright as mysql time, so that’s fine (e.g. 10:00:00). Could s…

---

## [Firendship representation in rails](https://www.ruby-forum.com/t/firendship-representation-in-rails/134855)

<div class="topic-metadata">

**Author:** [@gadys](https://www.ruby-forum.com/u/gadys)\
**Replies:** 4\
**Last updated:** [April 16, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/firendship-representation-in-rails/134855 "2008-04-16T23:03:25Z")

</div>

Hi I want to represent a social graph in my facebooker application. I have a class user and I want to connect each user to his friends using many-to-many. I am planning to support other networks in the future so I ha…

---

## [Best practice for page\_caching with shared storage](https://www.ruby-forum.com/t/best-practice-for-page-caching-with-shared-storage/110635)

<div class="topic-metadata">

**Author:** [@cwt137](https://www.ruby-forum.com/u/cwt137)\
**Replies:** 4\
**Last updated:** [August 1, 2007, 1:07am UTC](https://www.ruby-forum.com/t/best-practice-for-page-caching-with-shared-storage/110635 "2007-08-01T01:07:56Z")

</div>

I’m looking for comments, suggestions, best practices for handling page\_caching with shared storage. This is the scenario: nginx box in front of multiple mongrel\_cluster boxes (Xen instances actually) At the moment …

---

## [Problema complejo](https://www.ruby-forum.com/t/problema-complejo/108331)

<div class="topic-metadata">

**Author:** [@emili](https://www.ruby-forum.com/u/emili)\
**Replies:** 4\
**Last updated:** [July 2, 2007, 1:16pm UTC](https://www.ruby-forum.com/t/problema-complejo/108331 "2007-07-02T13:16:31Z")

</div>

Me estoy encontrado con un problema un tanto complejo que no se como resolver, a ver si alguien tiene una iluminaciÃ³n. Estoy desarrollando una aplicaciÃ³n de reserva de entradas para una discoteca. Mediante un formul…

---

## [Some help for form builder?](https://www.ruby-forum.com/t/some-help-for-form-builder/90804)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [April 3, 2007, 10:05am UTC](https://www.ruby-forum.com/t/some-help-for-form-builder/90804 "2007-04-03T10:05:19Z")

</div>

Hi all I’d like to group my fields on a form into visual separate areas. My plan is to surround fields that belong together with fieldset/legend tags: Personal Information form.text\_field :name form.text\_field…

---

## [\[ANN\] Ferret 0.11.2-rc3 released](https://www.ruby-forum.com/t/ann-ferret-0-11-2-rc3-released/87124)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/ann-ferret-0-11-2-rc3-released/87124 "2007-03-01T15:37:40Z")

</div>

Hey guys, I’ve just removed the -fno-stack-protector flag from the release so those who had trouble because of this should now be able to install 0.11.2-rc3. If you have any problems with this release, please let me …

---

## [Intermittent problem finding records - ever seen this?](https://www.ruby-forum.com/t/intermittent-problem-finding-records-ever-seen-this/82060)

<div class="topic-metadata">

**Author:** [@mindel](https://www.ruby-forum.com/u/mindel)\
**Replies:** 4\
**Last updated:** [January 18, 2007, 10:31am UTC](https://www.ruby-forum.com/t/intermittent-problem-finding-records-ever-seen-this/82060 "2007-01-18T10:31:58Z")

</div>

I’m pulling my hair out. And I don’t have that much to start with. If anyone can give me any ideas or pointers, I’d REALLY appreciate it. My rails app is intermittently having problems finding records of 2 of my mod…

---

## [Can activesupport gem be used in "standalone" fashion?](https://www.ruby-forum.com/t/can-activesupport-gem-be-used-in-standalone-fashion/56528)

<div class="topic-metadata">

**Author:** [@john\_peter](https://www.ruby-forum.com/u/john_peter)\
**Replies:** 4\
**Last updated:** [March 31, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/can-activesupport-gem-be-used-in-standalone-fashion/56528 "2006-03-31T23:04:20Z")

</div>

i’m using ruby 1.8.2, rubygem 0.8.10, rails 1.0.0 where activesupport version = 1.2.5 when i try to run this in RADRail, i get a NoMethodError: require ‘rubygems’ require\_gem “activesupport” print Time.now + 2.days …

---

## [Unscramble a string given array](https://www.ruby-forum.com/t/unscramble-a-string-given-array/244110)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [February 23, 2016, 12:53pm UTC](https://www.ruby-forum.com/t/unscramble-a-string-given-array/244110 "2016-02-23T12:53:23Z")

</div>

Write a method that takes in a string and an array of indices in the string. Produce a new string, which contains letters from the input string in the order specified by the indices of the array of indices. This is how I…

---

## [Usrp\_sink tx\_time tag](https://www.ruby-forum.com/t/usrp-sink-tx-time-tag/242922)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 7, 2015, 6:51pm UTC](https://www.ruby-forum.com/t/usrp-sink-tx-time-tag/242922 "2015-08-07T18:51:49Z")

</div>

hi all I’ve one more tag related question: I want to sent packets in burst over a usrp\_sink. the time between two consecutive bursts should be 7ms. thus, I want to use a tx\_time\_tag along with every first item of a p…

---

## [Flush samples of blocks when changing centrer frequency](https://www.ruby-forum.com/t/flush-samples-of-blocks-when-changing-centrer-frequency/234095)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [February 5, 2015, 12:14pm UTC](https://www.ruby-forum.com/t/flush-samples-of-blocks-when-changing-centrer-frequency/234095 "2015-02-05T12:14:34Z")

</div>

Hi, I have a python flowgraph with several blocks. One of them is a “filter.single\_pole\_iir\_filter\_ff” which does a moving average. The last block is a Sink to file block. I scan several bands, 10MHz each, in order t…

---

## [Nginx, PATH\_INFO, and url-rewriting: i must be missing something](https://www.ruby-forum.com/t/nginx-path-info-and-url-rewriting-i-must-be-missing-something/201962)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 20, 2011, 11:14pm UTC](https://www.ruby-forum.com/t/nginx-path-info-and-url-rewriting-i-must-be-missing-something/201962 "2011-01-20T23:14:00Z")

</div>

I’m switching from Apache to Nginx/fcgi and I’m having a small issue while attempting to setup the applications rewrite rules. The code handles routes via the use of PATH\_INFO, e.g., example.com/foo/bar/ will be route…

---

## [Application Controller instance variable available to all views](https://www.ruby-forum.com/t/application-controller-instance-variable-available-to-all-views/197669)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [October 18, 2010, 6:52pm UTC](https://www.ruby-forum.com/t/application-controller-instance-variable-available-to-all-views/197669 "2010-10-18T18:52:03Z")

</div>

Currently, I have this on the application controller… def company\_name User.find\_by\_id(session\[:user\_id\]).account.name end So then in each controller I have to add this, which is not very DRY. The @company\_id needs …

---

## [JSON data not decoded in Rails](https://www.ruby-forum.com/t/json-data-not-decoded-in-rails/171568)

<div class="topic-metadata">

**Author:** [@migrate](https://www.ruby-forum.com/u/migrate)\
**Replies:** 2\
**Last updated:** [July 5, 2009, 10:58pm UTC](https://www.ruby-forum.com/t/json-data-not-decoded-in-rails/171568 "2009-07-05T22:58:45Z")

</div>

Hello all, I’m trying to send some json data from the browser to the server using prototype without success. On the server side ActiveSupport::JSON.decode isn’t decoding the data. Here is the code: Javacript: click …

---

## [Running SQL file from inside rake task](https://www.ruby-forum.com/t/running-sql-file-from-inside-rake-task/151105)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 2\
**Last updated:** [October 17, 2008, 1:12am UTC](https://www.ruby-forum.com/t/running-sql-file-from-inside-rake-task/151105 "2008-10-17T01:12:18Z")

</div>

My friends, I have a rake task that I’m running to initialize some stuff for new servers. I need to run a SQL file from inside that rake task. It’s just a big, raw SQL file. How can I run the SQL file from inside t…

---

## [Cross-correlating Two FFT signals](https://www.ruby-forum.com/t/cross-correlating-two-fft-signals/231123)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 22, 2014, 7:38pm UTC](https://www.ruby-forum.com/t/cross-correlating-two-fft-signals/231123 "2014-07-22T19:38:22Z")

</div>

Hello, I’m trying to find a way that I could cross-correlate two FFT signals that I have coming in from two UDP networks, anyone know of a block I can do that with? Thanks in advance, Marcus

---

## [Problem with return 302 redirection, with Nginx 1.3.11 + Drupal 7](https://www.ruby-forum.com/t/problem-with-return-302-redirection-with-nginx-1-3-11-drupal-7/225683)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [January 23, 2013, 9:30pm UTC](https://www.ruby-forum.com/t/problem-with-return-302-redirection-with-nginx-1-3-11-drupal-7/225683 "2013-01-23T21:30:44Z")

</div>

Hello, In order to redirect certain Drupal 7 functions to https I have setup Nginx 1.3.11 as follows: location ~\* ^/(?q=)?(?:user|admin|contact$) { return 302 https://$host$request\_uri; } and then the usual: locat…

---

## [Daily Diary](https://www.ruby-forum.com/t/daily-diary/220762)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 20, 2012, 9:38am UTC](https://www.ruby-forum.com/t/daily-diary/220762 "2012-06-20T09:38:36Z")

</div>

I want to create daily diary format and want to print date for whole year like 1-1-2012 to 1-12-1012 using Ruby on Rails. Is it possible ? If yes then please guide me. – Mandeep K.

---

## [Open localhost url](https://www.ruby-forum.com/t/open-localhost-url/209793)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [July 23, 2011, 3:41pm UTC](https://www.ruby-forum.com/t/open-localhost-url/209793 "2011-07-23T15:41:05Z")

</div>

Hi, When I call call the below code I get a timeout. http\_object = Net::HTTP.new(“localhost”, “3000”) hresp, data = http\_object.get("/documents/wdocs/generatedata?"+query\_string ,"", nil) But when application is run…

---

## [What am I missing about splat operator?](https://www.ruby-forum.com/t/what-am-i-missing-about-splat-operator/201053)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [December 30, 2010, 6:47am UTC](https://www.ruby-forum.com/t/what-am-i-missing-about-splat-operator/201053 "2010-12-30T06:47:02Z")

</div>

In trying to understand the splat operator, I visited: The first example that site offers is: The split mode : pet1, pet2, pet3 = \*\[“duck”,“dog”,“cat”\] That resulted in pet1 == “duck”, etc But so did: pet1, pet2, …

---

## [Stacktrace when using taggable\_events in Radiant 0.9.1 - Undefined method \`attached\_tags'](https://www.ruby-forum.com/t/stacktrace-when-using-taggable-events-in-radiant-0-9-1-undefined-method-attached-tags/198127)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [October 27, 2010, 8:20am UTC](https://www.ruby-forum.com/t/stacktrace-when-using-taggable-events-in-radiant-0-9-1-undefined-method-attached-tags/198127 "2010-10-27T08:20:11Z")

</div>

Hi, Does anyone know why I’m getting this stacktrace when I try to add a new Event in my Radiant project? NoMethodError (undefined method attached\_tags' for #\<Event: 0x2ad8d575a7a0\>): vendor/extensions/taggable\_events…

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

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