# Top

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

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

---

## ["Find me in app/views/hello/index.rhtml" loads, but no such](https://www.ruby-forum.com/t/find-me-in-app-views-hello-index-rhtml-loads-but-no-such/104365)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 6\
**Last updated:** [May 17, 2007, 11:26am UTC](https://www.ruby-forum.com/t/find-me-in-app-views-hello-index-rhtml-loads-but-no-such/104365 "2007-05-17T11:26:17Z")

</div>

I’m following http://wiki.rubyonrails.org/rails/pages/Tutorial http://localhost:3000/hello gives: "Hello#index Find me in app/views/hello/index.rhtml" which is the expected output. What’s not expected is: \[thufir@l…

---

## [Regex problem, probably simple](https://www.ruby-forum.com/t/regex-problem-probably-simple/104150)

<div class="topic-metadata">

**Author:** [@bigjimmyk3](https://www.ruby-forum.com/u/bigjimmyk3)\
**Replies:** 6\
**Last updated:** [May 17, 2007, 1:41am UTC](https://www.ruby-forum.com/t/regex-problem-probably-simple/104150 "2007-05-17T01:41:36Z")

</div>

Hello! I’m trying to do the following: I want to scrape something of a webpage. It has a massive content and I want to find the thing that comes after the first occourance of “a href=” after the occourance of “id=xxx…

---

## [Replace\_html and Prototype](https://www.ruby-forum.com/t/replace-html-and-prototype/83713)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [February 6, 2007, 3:38am UTC](https://www.ruby-forum.com/t/replace-html-and-prototype/83713 "2007-02-06T03:38:49Z")

</div>

'm trying to change over from Rails 1.1.6 to 1.2.1 and have discovered that either something is wrong with Prototype of else something has changed that I am not aware of and cannot find documentation on. (I just joine…

---

## [I don't even know what to ask for](https://www.ruby-forum.com/t/i-dont-even-know-what-to-ask-for/72384)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [October 18, 2006, 12:51am UTC](https://www.ruby-forum.com/t/i-dont-even-know-what-to-ask-for/72384 "2006-10-18T00:51:02Z")

</div>

I have a command line shell that I plan to run over and over again. It’s base functionality is to accept a list of files names and a file name containing the logic to be applied to the contents of said files. My shell…

---

## [Running Ruby on Windows](https://www.ruby-forum.com/t/running-ruby-on-windows/72196)

<div class="topic-metadata">

**Author:** [@vincpa](https://www.ruby-forum.com/u/vincpa)\
**Replies:** 6\
**Last updated:** [October 15, 2006, 9:27pm UTC](https://www.ruby-forum.com/t/running-ruby-on-windows/72196 "2006-10-15T21:27:04Z")

</div>

Hi, If mod\_ruby is only available for \*nix systems, how can I code ruby scripts into HTML files without using rails? Does webrick still work? It also seems that eRuby no longer exists so how would apache be set up to…

---

## [Edit Links](https://www.ruby-forum.com/t/edit-links/65419)

<div class="topic-metadata">

**Author:** [@Daniel\_Lyons](https://www.ruby-forum.com/u/Daniel_Lyons)\
**Replies:** 6\
**Last updated:** [August 22, 2006, 5:23am UTC](https://www.ruby-forum.com/t/edit-links/65419 "2006-08-22T05:23:05Z")

</div>

Hi, I’m wondering if there is a simple way to determine in a template whether or not the user is logged in as someone who can edit the current page, and if so, show a link to the edit page in the admin area. It strik…

---

## [Automagic class prototyping](https://www.ruby-forum.com/t/automagic-class-prototyping/99855)

<div class="topic-metadata">

**Author:** [@Aleks\_Kissinger](https://www.ruby-forum.com/u/Aleks_Kissinger)\
**Replies:** 6\
**Last updated:** [July 26, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/automagic-class-prototyping/99855 "2006-07-26T23:54:13Z")

</div>

Anybody know any slick techniques for automatically prototyping classes so they can interact with each other in top-level code? I’ve run through two methods, but I’m not real wild about either of them. Say for exampl…

---

## [Render partial questions](https://www.ruby-forum.com/t/render-partial-questions/98254)

<div class="topic-metadata">

**Author:** [@subroutine](https://www.ruby-forum.com/u/subroutine)\
**Replies:** 6\
**Last updated:** [July 14, 2006, 1:01am UTC](https://www.ruby-forum.com/t/render-partial-questions/98254 "2006-07-14T01:01:06Z")

</div>

Hello, what is the preferred way to do this… I have 2 controllers. Each has an index action. Now I want to include the rendered index view from TwoController in the index view of OneController. But a render :partial…

---

## [Can I protect access to a relationship?](https://www.ruby-forum.com/t/can-i-protect-access-to-a-relationship/65112)

<div class="topic-metadata">

**Author:** [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Replies:** 6\
**Last updated:** [February 10, 2006, 1:39am UTC](https://www.ruby-forum.com/t/can-i-protect-access-to-a-relationship/65112 "2006-02-10T01:39:46Z")

</div>

Hi, I have a class Match that looks like this (simplified) class Match \< ActiveRecord::Base belongs\_to :opp1, :class\_name =\> “Player”, :foreign\_key =\> “opp1\_id” belongs\_to :opp2, :class\_name =\> “Player”, :foreign\_key…

---

## [Apt-sary-0.1](https://www.ruby-forum.com/t/apt-sary-0-1/73631)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [December 29, 2005, 1:44pm UTC](https://www.ruby-forum.com/t/apt-sary-0-1/73631 "2005-12-29T13:44:30Z")

</div>

Hi, == Abstract Sary makes apt-cache search' and apt-file search’ MUCH FASTER. Using apt-sary is very easy! Only replace apt-' with apt-sary-'. It is available at http://www.rubyist.net/~rubikitch/computer/apt-sary…

---

## [How to delete older records through ActiveRecord](https://www.ruby-forum.com/t/how-to-delete-older-records-through-activerecord/243680)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [December 21, 2015, 9:38pm UTC](https://www.ruby-forum.com/t/how-to-delete-older-records-through-activerecord/243680 "2015-12-21T21:38:42Z")

</div>

I have a ruby script that adds records to MySql with no problem, here is the code: snmp\_data = Snmpdatas.new(“name” =\> LabelDescription, “time” =\> My\_Time, “inbits” =\> SpeedIn.to\_i) snmp\_data.save I need to be able…

---

## [\[Assigned\] gcc 4.1.2 for x86 can't build trunk](https://www.ruby-forum.com/t/assigned-gcc-4-1-2-for-x86-cant-build-trunk/232626)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 19, 2014, 9:55am UTC](https://www.ruby-forum.com/t/assigned-gcc-4-1-2-for-x86-cant-build-trunk/232626 "2014-10-19T09:55:30Z")

</div>

Issue #10397 has been reported by Yui NARUSE. Bug #10397: gcc 4.1.2 for x86 can’t build trunk Author: Yui NARUSE Status: Assigned Priority: Normal Assignee: Vit O. Category: build Target version: current: 2.2.0 ruby…

---

## [OFDM: troubles regarding FFT size and decimation factor](https://www.ruby-forum.com/t/ofdm-troubles-regarding-fft-size-and-decimation-factor/238133)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [December 20, 2013, 12:16pm UTC](https://www.ruby-forum.com/t/ofdm-troubles-regarding-fft-size-and-decimation-factor/238133 "2013-12-20T12:16:58Z")

</div>

Hello everybody, I’m trying to do some channel measurements using a setup based on three PCs with two USRP2 devices (equipped with RFX2400 daughterboards) and GNU Radio 3.7. One of the PCs acts as network controller,…

---

## [ScrolledWindow - how to enable scrolling with page up and page down keys?](https://www.ruby-forum.com/t/scrolledwindow-how-to-enable-scrolling-with-page-up-and-page-down-keys/237993)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [December 11, 2013, 8:30am UTC](https://www.ruby-forum.com/t/scrolledwindow-how-to-enable-scrolling-with-page-up-and-page-down-keys/237993 "2013-12-11T08:30:48Z")

</div>

Hi, I have a Scrolled Window. The mouse keys work fine, I can scroll up and down, but not with page up and page down. Does someone understand why page up and page down does not work or more importantly how to enable …

---

## [Nokogiri under JRuby 1.7.3 significantly slower than 1.9.3-p392 (benchmark inside)](https://www.ruby-forum.com/t/nokogiri-under-jruby-1-7-3-significantly-slower-than-1-9-3-p392-benchmark-inside/228050)

<div class="topic-metadata">

**Author:** [@Kushal\_Pisavadia](https://www.ruby-forum.com/u/Kushal_Pisavadia)\
**Replies:** 1\
**Last updated:** [April 8, 2013, 8:41am UTC](https://www.ruby-forum.com/t/nokogiri-under-jruby-1-7-3-significantly-slower-than-1-9-3-p392-benchmark-inside/228050 "2013-04-08T08:41:08Z")

</div>

A few days ago in the IRC channel I asked whether anyone had noticed a significant decrease in speed using Nokogiri under JRuby vs. ruby 1.9.3-p392 and Charles suggested I send in a benchmark. I’ve pasted the notes ve…

---

## [Suppress ActionController::RoutingError in logs](https://www.ruby-forum.com/t/suppress-actioncontroller-routingerror-in-logs/205646)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [June 30, 2011, 11:44am UTC](https://www.ruby-forum.com/t/suppress-actioncontroller-routingerror-in-logs/205646 "2011-06-30T11:44:10Z")

</div>

My rails log get chock a block with things like \<\<\<\<\<\<\<\<\<\<\<\< ActionController::RoutingError (No route matches “/admin/Y- ivrrecording.php” with {:method=\>:get}): … ActionController::RoutingError (No route matches “/…

---

## [Spec/support directory outside Rails?](https://www.ruby-forum.com/t/spec-support-directory-outside-rails/188711)

<div class="topic-metadata">

**Author:** [@stu](https://www.ruby-forum.com/u/stu)\
**Replies:** 1\
**Last updated:** [May 17, 2010, 1:07am UTC](https://www.ruby-forum.com/t/spec-support-directory-outside-rails/188711 "2010-05-17T01:07:18Z")

</div>

Hi, I have a group of non-Rails R. projects that all make heavy use of RSpec. Each of these projects has a “spec” directory with a “helper.rb” file. All the \*\_spec.rb files in the spec directory tree do the usual r…

---

## [Embed Nginx as a static library with C++ application](https://www.ruby-forum.com/t/embed-nginx-as-a-static-library-with-c-application/184075)

<div class="topic-metadata">

**Author:** [@rahul123](https://www.ruby-forum.com/u/rahul123)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 12:59pm UTC](https://www.ruby-forum.com/t/embed-nginx-as-a-static-library-with-c-application/184075 "2010-02-26T12:59:18Z")

</div>

Hi, I wish to embed Nginx as a static library with my C++ application. Whether Nginx will support work on both Windows and Linux. I tried to download the Nginx source and I can only Nginx.exe and have steps to run t…

---

## [Where to get relative links within a view template?](https://www.ruby-forum.com/t/where-to-get-relative-links-within-a-view-template/163626)

<div class="topic-metadata">

**Author:** [@polarapfel](https://www.ruby-forum.com/u/polarapfel)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 12:10pm UTC](https://www.ruby-forum.com/t/where-to-get-relative-links-within-a-view-template/163626 "2009-03-23T12:10:34Z")

</div>

Hi everybody, in my view templates, I have a meta navigation bar in the header, that renders links to the administration login page, an about page and an imprint page. So far, I hard-coded these links. This is bad. S…

---

## [Net::openssh - how to get process exit status?](https://www.ruby-forum.com/t/net-openssh-how-to-get-process-exit-status/149626)

<div class="topic-metadata">

**Author:** [@wonko](https://www.ruby-forum.com/u/wonko)\
**Replies:** 1\
**Last updated:** [September 29, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/net-openssh-how-to-get-process-exit-status/149626 "2008-09-29T19:16:10Z")

</div>

Hi, I am using net-ssh 2.0.1. I have not been able to figure out how to get the exit value from a remotely executed process. In the only examples I could find, only the stdout was returned, like this one: Net::SSH.st…

---

## [How to parse a .erb string and store the result on another string](https://www.ruby-forum.com/t/how-to-parse-a-erb-string-and-store-the-result-on-another-string/144478)

<div class="topic-metadata">

**Author:** [@andres](https://www.ruby-forum.com/u/andres)\
**Replies:** 1\
**Last updated:** [July 30, 2008, 1:18am UTC](https://www.ruby-forum.com/t/how-to-parse-a-erb-string-and-store-the-result-on-another-string/144478 "2008-07-30T01:18:13Z")

</div>

Hi Before diving on the seas of find-out-your-self I though I’d venture a post. given a string with valid .erb syntax such as string=’\<% who=world %\> hello \<%= who %\>’ is there a way to parse it and obtain the resul…

---

## [How to marshal Javascript data?](https://www.ruby-forum.com/t/how-to-marshal-javascript-data/61496)

<div class="topic-metadata">

**Author:** [@Bradley\_M](https://www.ruby-forum.com/u/Bradley_M)\
**Replies:** 1\
**Last updated:** [May 24, 2006, 7:19pm UTC](https://www.ruby-forum.com/t/how-to-marshal-javascript-data/61496 "2006-05-24T19:19:09Z")

</div>

I’m trying to marshal some information I have in Javascript, and send it over an AJAX request to the server, specifically to be stored in a model on the server side. I have some Javascript routines I wrote that gather…

---

## [How to increase flexibility of #flatten](https://www.ruby-forum.com/t/how-to-increase-flexibility-of-flatten/229444)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 5\
**Last updated:** [February 6, 2013, 1:55am UTC](https://www.ruby-forum.com/t/how-to-increase-flexibility-of-flatten/229444 "2013-02-06T01:55:57Z")

</div>

I am trying to use flatten to change #this =\> \[ \[1, 3\], \[1, 4\], \[2, 3\], \[2, 4\], \[ \[5, 5\], \[6, 6\] \] \] #to this. =\> \[ \[1,3\], \[1,4\], \[2,3\], \[2,4\], \[5,5\], \[6,6\] \] I’ve tried giving flatten an argument of 1, but it remov…

---

## [Accessing non-instance variables in view](https://www.ruby-forum.com/t/accessing-non-instance-variables-in-view/226564)

<div class="topic-metadata">

**Author:** [@praveen\_b](https://www.ruby-forum.com/u/praveen_b)\
**Replies:** 5\
**Last updated:** [December 18, 2012, 9:00am UTC](https://www.ruby-forum.com/t/accessing-non-instance-variables-in-view/226564 "2012-12-18T09:00:30Z")

</div>

Hi, I to want pass a variable(which is not a instance variable) from controller to view in rails application, onclick I am going to controller and fetching data with ajax. Since the page is not reloaded I cant set the…

---

## [Google\_hash v 0.7.0 released. Faster hashes for MRI](https://www.ruby-forum.com/t/google-hash-v-0-7-0-released-faster-hashes-for-mri/223604)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [October 12, 2012, 2:38am UTC](https://www.ruby-forum.com/t/google-hash-v-0-7-0-released-faster-hashes-for-mri/223604 "2012-10-12T02:38:50Z")

</div>

Hello. Pleased to announce v 0.7.0 of the google\_hash gem has been released, mostly thanks to a patch from rolve. Changes: fixed building in linux with newer GCC’s, fixed building in windows with broken system comma…

---

## [Reusing the model to write a CLI](https://www.ruby-forum.com/t/reusing-the-model-to-write-a-cli/211743)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [September 13, 2011, 10:48am UTC](https://www.ruby-forum.com/t/reusing-the-model-to-write-a-cli/211743 "2011-09-13T10:48:27Z")

</div>

Hi, I am beginner to Rails. So far has been a happy PHP developer. I wrote a beginner application in rails. this has been working very good for the web. I want to re-use the model to write views in CLI. How can i do …

---

## [Collection add saves to the database twice](https://www.ruby-forum.com/t/collection-add-saves-to-the-database-twice/204380)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [March 11, 2011, 5:20pm UTC](https://www.ruby-forum.com/t/collection-add-saves-to-the-database-twice/204380 "2011-03-11T17:20:05Z")

</div>

I’ve got something weird happening in the code (using Rails 3.0). I have a ton of has\_many/belongs\_to relationships in my application and I save the child objects like this: if parent.child\_collection \<\< child #do s…

---

## [Forcing SSL;](https://www.ruby-forum.com/t/forcing-ssl/202901)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [February 8, 2011, 5:15pm UTC](https://www.ruby-forum.com/t/forcing-ssl/202901 "2011-02-08T17:15:12Z")

</div>

What is the best way to force all connections to use SSL? if($scheme == ‘http’)… redirect to https://

---

## [Show all files from a folder](https://www.ruby-forum.com/t/show-all-files-from-a-folder/75386)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 5\
**Last updated:** [July 30, 2010, 3:14pm UTC](https://www.ruby-forum.com/t/show-all-files-from-a-folder/75386 "2010-07-30T15:14:26Z")

</div>

I can not find nothing about files in google, how to create delete, how to show all files from a folder if you can redirect me to some web site I’d appreciate thanks

---

## [The price of a modern list architecture?](https://www.ruby-forum.com/t/the-price-of-a-modern-list-architecture/191799)

<div class="topic-metadata">

**Author:** [@Jacko](https://www.ruby-forum.com/u/Jacko)\
**Replies:** 5\
**Last updated:** [July 19, 2010, 10:10pm UTC](https://www.ruby-forum.com/t/the-price-of-a-modern-list-architecture/191799 "2010-07-19T22:10:03Z")

</div>

http://groups.google.co.uk/group/comp.lang.forth/browse\_thread/thread/ef39e59023a8ae4c/9eb9f6b99139a5df#9eb9f6b99139a5df Simple really, if Lisp’s (X , Y) construct should have limits placed on assignment of Y for trans…

---

## [Client-side form validation](https://www.ruby-forum.com/t/client-side-form-validation/190365)

<div class="topic-metadata">

**Author:** [@lucas\_franceschi](https://www.ruby-forum.com/u/lucas_franceschi)\
**Replies:** 5\
**Last updated:** [June 18, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/client-side-form-validation/190365 "2010-06-18T18:49:05Z")

</div>

hey all, I am having a hard time looking for a plugin/gem to auto-validate a form in client-side, just like “live-validations”… I tried to download and install it via “script/plugin install git:// github.com/porras/…

---

## [Threads & mutex question (Rubyist book example)](https://www.ruby-forum.com/t/threads-mutex-question-rubyist-book-example/189722)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 5\
**Last updated:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/threads-mutex-question-rubyist-book-example/189722 "2010-06-17T16:26:23Z")

</div>

Hi, I am concerned about the lack of mutual exlusion in code listing 14.2 “Chat server using TCPServer and threads” on page 430 in “The Well-Grounded Rubyist” book. That code goes something like this: chatters = \[\] …

---

## [Can i have a model called FILE.RB?](https://www.ruby-forum.com/t/can-i-have-a-model-called-file-rb/187432)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 5\
**Last updated:** [April 23, 2010, 3:57pm UTC](https://www.ruby-forum.com/t/can-i-have-a-model-called-file-rb/187432 "2010-04-23T15:57:02Z")

</div>

Is “file” reserved? Can i use it for my model name? Because I am getting this error- NoMethodError in FilesController#new undefined method \`quoted\_table\_name’ for File:Class

---

## [\[Feature #2579\] Net::HTTP.start("www.ruby-lang.org", use\_ssl: true) $B$G(B SSL $BMxMQ$r2DG=$K(B](https://www.ruby-forum.com/t/feature-2579-net-http-start-www-ruby-lang-org-use-ssl-true-b-g-b-ssl-bmxmq-r2dg-k-b/181316)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 5\
**Last updated:** [January 12, 2010, 6:57am UTC](https://www.ruby-forum.com/t/feature-2579-net-http-start-www-ruby-lang-org-use-ssl-true-b-g-b-ssl-bmxmq-r2dg-k-b/181316 "2010-01-12T06:57:32Z")

</div>

Feature #2579: Net::HTTP.start(“www.ruby-lang.org”, use\_ssl: true) e$B$Ge(B SSL e$BMxMQ$r2DG=$Ke(B http://redmine.ruby-lang.org/issues/show/2579 e$B5/I\<\<Te(B: Yui NARUSE e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e…

---

## [Redirect STDOUT to function?](https://www.ruby-forum.com/t/redirect-stdout-to-function/175877)

<div class="topic-metadata">

**Author:** [@makki](https://www.ruby-forum.com/u/makki)\
**Replies:** 5\
**Last updated:** [September 22, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/redirect-stdout-to-function/175877 "2009-09-22T23:51:11Z")

</div>

Hello, I’m using Ruby as a scripting language for a program that supports the WSH scripting interface, and I have a small problem: ‘puts’ and other output functions don’t work (because STDOUT is invalid), as with ‘get…

---

## [Best way to test for existence in a joined model](https://www.ruby-forum.com/t/best-way-to-test-for-existence-in-a-joined-model/175645)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 5\
**Last updated:** [September 17, 2009, 9:29am UTC](https://www.ruby-forum.com/t/best-way-to-test-for-existence-in-a-joined-model/175645 "2009-09-17T09:29:37Z")

</div>

Hi all, given these relationships class Order \< ActiveRecord::Base belongs\_to :item class Item \< ActiveRecord::Base has\_many :orders @items = Item.find( :all ) @items.each do |item| … What’s the best way to test …

---

## [Nginx-0.7.60](https://www.ruby-forum.com/t/nginx-0-7-60/170278)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 5\
**Last updated:** [June 15, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/nginx-0-7-60/170278 "2009-06-15T14:02:44Z")

</div>

Changes with nginx 0.7.60 15 Jun 2009 \*) Feature: the "updating" parameter in "proxy\_cache\_use\_stale" and "fastcgi\_cache\_use\_stale" directives. \*) Feature: the "keepalive\_requ…

---

## [When is nil not false?](https://www.ruby-forum.com/t/when-is-nil-not-false/165819)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 5\
**Last updated:** [April 18, 2009, 3:32am UTC](https://www.ruby-forum.com/t/when-is-nil-not-false/165819 "2009-04-18T03:32:04Z")

</div>

Can someone see what I cannot given this code? class ForexCASource def initialize(source=nil) xchg\_source unless source puts “this is source = #{source} #{source.class}” puts “do we get here? why?” xchg\_source(sour…

---

## [Rspec weird behaviour](https://www.ruby-forum.com/t/rspec-weird-behaviour/163627)

<div class="topic-metadata">

**Author:** [@andrea](https://www.ruby-forum.com/u/andrea)\
**Replies:** 5\
**Last updated:** [March 24, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/rspec-weird-behaviour/163627 "2009-03-24T14:10:51Z")

</div>

Hi, I recently migrated from classic rails testing to Rspec, so I am pretty new to the framework and still learning. I am getting weird errors on an ActiveRecord model test, here is the basic class model definition: …

---

## [Synchronization throughout flowgraph](https://www.ruby-forum.com/t/synchronization-throughout-flowgraph/162351)

<div class="topic-metadata">

**Author:** [@Vincenzo\_P](https://www.ruby-forum.com/u/Vincenzo_P)\
**Replies:** 5\
**Last updated:** [March 11, 2009, 11:46pm UTC](https://www.ruby-forum.com/t/synchronization-throughout-flowgraph/162351 "2009-03-11T23:46:21Z")

</div>

Hi everybody, just a very simple question: is there a clean way in GNURadio to do this source–\>block1–\>block2 where: source sends let’s say some gr\_complex block 1 looks for some synchro signal within the flow blo…

---

## [Consuglio sui plugin](https://www.ruby-forum.com/t/consuglio-sui-plugin/157068)

<div class="topic-metadata">

**Author:** [@miclab](https://www.ruby-forum.com/u/miclab)\
**Replies:** 5\
**Last updated:** [January 7, 2009, 10:13pm UTC](https://www.ruby-forum.com/t/consuglio-sui-plugin/157068 "2009-01-07T22:13:12Z")

</div>

Sto cercando di capire quale plugin utilizzare per gestire gli utenti. Ho trovato restful\_authentication e acts\_as\_authenticated. Utilizzo l’ultima verione di rails, la 2.2.2 Se non ricordo male uno dei due Ã¨ la vers…

---

## [Foreign key question](https://www.ruby-forum.com/t/foreign-key-question/152079)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 5\
**Last updated:** [November 13, 2008, 12:49am UTC](https://www.ruby-forum.com/t/foreign-key-question/152079 "2008-11-13T00:49:43Z")

</div>

Here’s my situation: Let’s say, I have a “members” table that tools like this: id | member\_id | name | and I have a “invitation” table that looks like this: id | member\_id | date | In my case, invitation.member\_id n…

---

## [:FOO === "FOO" =\> true and case/when behavior](https://www.ruby-forum.com/t/foo-foo-true-and-case-when-behavior/152689)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [November 12, 2008, 11:34am UTC](https://www.ruby-forum.com/t/foo-foo-true-and-case-when-behavior/152689 "2008-11-12T11:34:52Z")

</div>

e$B$1$$$8$e!w$$$7$D$+$G$9e(B. e$B0J2\<$N%9%/%j%W%H$r\<B9T$9$k$He(B: – p :FOO === “FOO” FOO = :FOO case “FOO” when FOO puts 1 else puts 0 end case “FOO” when :FOO puts 1 else puts 0 end e$B0J2\<$N$h$&$J7k2L$K…

---

## [Ssi includes in reverse-proxied pages?](https://www.ruby-forum.com/t/ssi-includes-in-reverse-proxied-pages/146564)

<div class="topic-metadata">

**Author:** [@William\_Ross](https://www.ruby-forum.com/u/William_Ross)\
**Replies:** 5\
**Last updated:** [August 23, 2008, 9:35am UTC](https://www.ruby-forum.com/t/ssi-includes-in-reverse-proxied-pages/146564 "2008-08-23T09:35:14Z")

</div>

hello, Quick question: is it possible for nginx to parse SSI directives in pages retrieved from upstream? I have a front end that proxies to both a rails CMS and a shop application and I’d like to include partials fr…

---

## [Rails e google . problemi di lettura pagine rhtml o html.erb?](https://www.ruby-forum.com/t/rails-e-google-problemi-di-lettura-pagine-rhtml-o-html-erb/144878)

<div class="topic-metadata">

**Author:** [@daniele\_lori](https://www.ruby-forum.com/u/daniele_lori)\
**Replies:** 5\
**Last updated:** [August 21, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/rails-e-google-problemi-di-lettura-pagine-rhtml-o-html-erb/144878 "2008-08-21T15:01:57Z")

</div>

ciao, primo prog in rails (usavo perl). è + di 1 mese che ho creato e messo un sito in rete con rails 2.0, pagine .html.erb etc.; ma in google non vi è alcuna traccia: sito invisibile. Normali tempi di esplorazione…

---

## [rSpec, Selenium and screenshots](https://www.ruby-forum.com/t/rspec-selenium-and-screenshots/134156)

<div class="topic-metadata">

**Author:** [@bartz](https://www.ruby-forum.com/u/bartz)\
**Replies:** 5\
**Last updated:** [April 8, 2008, 2:09pm UTC](https://www.ruby-forum.com/t/rspec-selenium-and-screenshots/134156 "2008-04-08T14:09:58Z")

</div>

Hey list, I’m currently playing with the selenium acceptance test-thingies, and I want to build something that saves a screenshot when a test fails. However, I have no clue whatsoever where to implement this. I’m thi…

---

## [Quick ruby-powered html-forms?](https://www.ruby-forum.com/t/quick-ruby-powered-html-forms/126803)

<div class="topic-metadata">

**Author:** [@Casimir](https://www.ruby-forum.com/u/Casimir)\
**Replies:** 5\
**Last updated:** [January 23, 2008, 8:37pm UTC](https://www.ruby-forum.com/t/quick-ruby-powered-html-forms/126803 "2008-01-23T20:37:04Z")

</div>

I am certain someone has made a solution for quickly creating forms with ruby. Any ideas? (other than installing rails) Thanks Casimir

---

## [Error al poner cualquier cosa de ActionMailer en enviroment.rb](https://www.ruby-forum.com/t/error-al-poner-cualquier-cosa-de-actionmailer-en-enviroment-rb/122517)

<div class="topic-metadata">

**Author:** [@Listas\_de\_Correo](https://www.ruby-forum.com/u/Listas_de_Correo)\
**Replies:** 5\
**Last updated:** [December 8, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/error-al-poner-cualquier-cosa-de-actionmailer-en-enviroment-rb/122517 "2007-12-08T21:51:51Z")

</div>

Buenas, he leido no se cuantas páginas, buscando información de la utilización de Restful Authentication y el envío de emails para validar la cuenta. La cuestión es que cuando pongo, por ejemplo: ActionMailer::Base.de…

---

## [Problem getting user input](https://www.ruby-forum.com/t/problem-getting-user-input/121071)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 5\
**Last updated:** [November 25, 2007, 9:12am UTC](https://www.ruby-forum.com/t/problem-getting-user-input/121071 "2007-11-25T09:12:47Z")

</div>

I wrote a script that gets user input like this: $stdout.print "Do you want to change something else? (y/n): " $changeSE = gets.chomp if $changeSE =~ /^y/ changeSomethingElse end After the prompt is printed, the sc…

---

## [Re: Encoder Integration](https://www.ruby-forum.com/t/re-encoder-integration/118640)

<div class="topic-metadata">

**Author:** [@Achilleas\_A](https://www.ruby-forum.com/u/Achilleas_A)\
**Replies:** 5\
**Last updated:** [October 29, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/re-encoder-integration/118640 "2007-10-29T18:52:21Z")

</div>

Brian, FYI, soft versions of the Viterbi decoder (named soft-input/soft-output blocks) are already implemented in gr-trellis. In addition a serially concatenated code, and corresponding turbo decoder is implemented u…

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

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