# Top

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

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

---

## [Thin Controllers, Thin AR Models too!](https://www.ruby-forum.com/t/thin-controllers-thin-ar-models-too/219645)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 10, 2012, 9:05pm UTC](https://www.ruby-forum.com/t/thin-controllers-thin-ar-models-too/219645 "2012-05-10T21:05:03Z")

</div>

After seeing DestroyAllSoftware screencasts from Gary Bernhardt, reading this post Porno , talking with some people about the issue and based on my personal experience, I found that they’re all right. So I’m on a new…

---

## [ActiveRecord scope with advanced condition](https://www.ruby-forum.com/t/activerecord-scope-with-advanced-condition/218711)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [April 10, 2012, 10:44am UTC](https://www.ruby-forum.com/t/activerecord-scope-with-advanced-condition/218711 "2012-04-10T10:44:00Z")

</div>

Hi there, Anyone knows how to use a scope with a table alias condition like: SELECT \* FROM table\_name AS alias\_name, alias\_name2 Where alias\_name.field = alias\_name2.field Or if anyone has other suggestion… Than…

---

## [How to restrict edit/removing privileges on others' records?](https://www.ruby-forum.com/t/how-to-restrict-edit-removing-privileges-on-others-records/216544)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 9, 2012, 3:56am UTC](https://www.ruby-forum.com/t/how-to-restrict-edit-removing-privileges-on-others-records/216544 "2012-02-09T03:56:55Z")

</div>

Hello,I am quite new on rails. Currently making CRUD apps in rails 3.0 in windows. I’ve used devise \[1.1.rc0\] for authentication.In those apps, any logged in user can change other user’s details. How can I design th…

---

## [Running remote commands with Vlad fails](https://www.ruby-forum.com/t/running-remote-commands-with-vlad-fails/215156)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [December 23, 2011, 11:18pm UTC](https://www.ruby-forum.com/t/running-remote-commands-with-vlad-fails/215156 "2011-12-23T23:18:18Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I’m currently trying to get comfortable with automated application deployment using Vlad. I’m sure I’m missing something absolutely obvious, but it seems I can…

---

## [How to access an element from a instance variable](https://www.ruby-forum.com/t/how-to-access-an-element-from-a-instance-variable/214277)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 27, 2011, 12:56am UTC](https://www.ruby-forum.com/t/how-to-access-an-element-from-a-instance-variable/214277 "2011-11-27T00:56:15Z")

</div>

Folks im new to rails and was wondering how i would access these elements from my view in my controller i have @data = Editpatient.find(:all, :conditions =\> \[“patient\_id = ?”, params\[:patients\]\] ) and in the view i …

---

## [RAML v0.2.0 released](https://www.ruby-forum.com/t/raml-v0-2-0-released/213279)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 28, 2011, 8:26pm UTC](https://www.ruby-forum.com/t/raml-v0-2-0-released/213279 "2011-10-28T20:26:58Z")

</div>

RAML 0.2.0 has been released. RAML is a Ruby-syntax-based data language. home: http://rubyworks.github.com/raml code: GitHub - rubyworks/raml: Ruby Ambidextrous Metadata Language docs: File: README — Documentation f…

---

## [Ruber 0.0.10 released](https://www.ruby-forum.com/t/ruber-0-0-10-released/213029)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 22, 2011, 10:21pm UTC](https://www.ruby-forum.com/t/ruber-0-0-10-released/213029 "2011-10-22T22:21:44Z")

</div>

Ruber 0.0.10 has been released today Ruber web page: http://stcrocco.github.com/ruber Ruber repository: GitHub - stcrocco/ruber: An IDE for Ruby written in Ruby using KDE CHANGES IN RUBER 0.0.10 New features: Added…

---

## [Ruby interpreter dies with system popup message](https://www.ruby-forum.com/t/ruby-interpreter-dies-with-system-popup-message/212927)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 18, 2011, 12:10pm UTC](https://www.ruby-forum.com/t/ruby-interpreter-dies-with-system-popup-message/212927 "2011-10-18T12:10:50Z")

</div>

I sometimes get this message on a dev box I log into remotely: Ruby Interpreter (CUI) 1.9.2p180 \[i386-mingw32\] has stopped working A problem caused the program to stop working correctly. Windows will close the program…

---

## ["Failed to automatically set up a USRP device"!](https://www.ruby-forum.com/t/failed-to-automatically-set-up-a-usrp-device/209487)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [July 15, 2011, 9:26pm UTC](https://www.ruby-forum.com/t/failed-to-automatically-set-up-a-usrp-device/209487 "2011-07-15T21:26:33Z")

</div>

Hi We are also working on the same set up as you﻿ people did except that we are using USRP N200. We were trying to make two USRPs communicate using benchmark\_tx/rx.py. When trying to run benchmark files,we are gettin…

---

## [Issue with: instance\_variable\_defined?](https://www.ruby-forum.com/t/issue-with-instance-variable-defined/209440)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [July 14, 2011, 6:53am UTC](https://www.ruby-forum.com/t/issue-with-instance-variable-defined/209440 "2011-07-14T06:53:15Z")

</div>

I expect the third line to be true rather than false. Comments? Hal class SomeClass attr\_reader :a1, :a2 # Creates @a1, a1, @a2, a2 attr\_writer :b1, :b2 # Creates @b1, b1=, @b2, b2= attr\_accessor :c1, :c2 # …

---

## [Feasibility study of Porting GNU Radio on experimental processor](https://www.ruby-forum.com/t/feasibility-study-of-porting-gnu-radio-on-experimental-processor/208646)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 24, 2011, 3:38pm UTC](https://www.ruby-forum.com/t/feasibility-study-of-porting-gnu-radio-on-experimental-processor/208646 "2011-06-24T15:38:51Z")

</div>

Hi I want to port the GNU radio code base to TTA processor architecture. The processor is programmed on an FPGA. The compiler for TTA is TCE which supports C and C++. I have some initial questions about feasibility…

---

## [Try\_files Wordpress search](https://www.ruby-forum.com/t/try-files-wordpress-search/206379)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 29, 2011, 3:40pm UTC](https://www.ruby-forum.com/t/try-files-wordpress-search/206379 "2011-04-29T15:40:26Z")

</div>

I recently switched from using if rules for wordpress “pretty” url rewriting to the preffered try\_files directive. I used the configuration set out on this (http://elivz.com/blog/single/wordpress\_with\_w3tc\_on\_nginx/) …

---

## [Test on destroy fails after 3.0.5 upgrade](https://www.ruby-forum.com/t/test-on-destroy-fails-after-3-0-5-upgrade/204861)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 23, 2011, 4:39pm UTC](https://www.ruby-forum.com/t/test-on-destroy-fails-after-3-0-5-upgrade/204861 "2011-03-23T16:39:06Z")

</div>

After upgrading 3.0.4 -\> 3.0.5 one of my tests now fails on an assertion like ‘assert !@product.destroy’. This tests a :before\_destroy callback which simply returns false to prevent deletion. I verified that the callb…

---

## [Fastcgi 9000 listening killing sometimes](https://www.ruby-forum.com/t/fastcgi-9000-listening-killing-sometimes/202788)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 7, 2011, 4:23am UTC](https://www.ruby-forum.com/t/fastcgi-9000-listening-killing-sometimes/202788 "2011-02-07T04:23:11Z")

</div>

Hi, I have sites and connect fastcgi app :9000 sometimes fastcgi app closing unexceptly so my websites also down i have to start fastcgi app manually is there any possiblity that i can find out why fastcgi killing its…

---

## [Questions about using UHD with USRP2](https://www.ruby-forum.com/t/questions-about-using-uhd-with-usrp2/199349)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [November 19, 2010, 5:49am UTC](https://www.ruby-forum.com/t/questions-about-using-uhd-with-usrp2/199349 "2010-11-19T05:49:58Z")

</div>

p { margin-bottom: 0.08in; } First, I am not quite sure if it is a good idea to use UHD with USRP2 right now. I have the UHD driver installed and the USRP2 board detected. What I need to do first is to write a basi…

---

## [Help on BBN 802.11b code](https://www.ruby-forum.com/t/help-on-bbn-802-11b-code/199000)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 15, 2010, 1:05am UTC](https://www.ruby-forum.com/t/help-on-bbn-802-11b-code/199000 "2010-11-15T01:05:13Z")

</div>

Hi I tried to install the BBN 802.11b trunk from CGRAN project website, and got some problems duing “sudo make”, as follows: bbn\_tap.cc: In constructor bbn\_tap::bbn\_tap(std::string, int): bbn\_tap.cc:51: error: memset…

---

## [Connect to IBM\_DB with rubyscript2exe](https://www.ruby-forum.com/t/connect-to-ibm-db-with-rubyscript2exe/194796)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [September 16, 2010, 8:24pm UTC](https://www.ruby-forum.com/t/connect-to-ibm-db-with-rubyscript2exe/194796 "2010-09-16T20:24:26Z")

</div>

I have a ruby script that can connect to an IBM\_DB database and gather all the necessary information for my script to run, but once i use rubyscript2exe to create a .exe of the script it keeps saying that my database …

---

## [Need Tx/Rx loopback test for USRP2 with a wbx daughter board](https://www.ruby-forum.com/t/need-tx-rx-loopback-test-for-usrp2-with-a-wbx-daughter-board/193126)

<div class="topic-metadata">

**Author:** [@Mark\_Hemmerlein](https://www.ruby-forum.com/u/Mark_Hemmerlein)\
**Replies:** 2\
**Last updated:** [August 11, 2010, 9:30pm UTC](https://www.ruby-forum.com/t/need-tx-rx-loopback-test-for-usrp2-with-a-wbx-daughter-board/193126 "2010-08-11T21:30:38Z")

</div>

Hi I now have a USRP2 with a wbx daughter board up and working under Ubuntu ( usrp2\_fft.py ). I would like to perform a transmit / receive loopback test to verify transmit as well as receive. Is there a program or …

---

## [Anyone had luck with high throughput IPC to GNU Radio?](https://www.ruby-forum.com/t/anyone-had-luck-with-high-throughput-ipc-to-gnu-radio/192459)

<div class="topic-metadata">

**Author:** [@george\_n](https://www.ruby-forum.com/u/george_n)\
**Replies:** 2\
**Last updated:** [July 30, 2010, 5:39pm UTC](https://www.ruby-forum.com/t/anyone-had-luck-with-high-throughput-ipc-to-gnu-radio/192459 "2010-07-30T17:39:58Z")

</div>

Hi all, Has anyone had any luck achieving high throughput (e.g., supporting interpolation of 8 or 16 with USRP2) from Octave to a GNU Radio flowgraph? I am trying to stream a signal to my GR flowgraph, and at first I…

---

## [Accessing Input Type Image Coordinate Params](https://www.ruby-forum.com/t/accessing-input-type-image-coordinate-params/192055)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 2\
**Last updated:** [July 23, 2010, 7:31am UTC](https://www.ruby-forum.com/t/accessing-input-type-image-coordinate-params/192055 "2010-07-23T07:31:32Z")

</div>

Form input of type image sends as parameters the x,y coordinates of the point on the image where the click occurred. Param keys are generally in the form, ‘my\_image.x’ and ‘my\_image.y’. So, if one wants to test whet…

---

## [Freetds implementation in Ruby](https://www.ruby-forum.com/t/freetds-implementation-in-ruby/187869)

<div class="topic-metadata">

**Author:** [@Thiago\_Morais](https://www.ruby-forum.com/u/Thiago_Morais)\
**Replies:** 2\
**Last updated:** [May 18, 2010, 3:30am UTC](https://www.ruby-forum.com/t/freetds-implementation-in-ruby/187869 "2010-05-18T03:30:32Z")

</div>

Hi there, Do you guys know about any implementation of the freetds protocol in Ruby? If not, it’s possible to implement i? Or there’s some kind of constraints in doing it ? I’ve found this project, http://rubyforge.o…

---

## [How to implement 20 - point and point - 20 using coerce()?](https://www.ruby-forum.com/t/how-to-implement-20-point-and-point-20-using-coerce/188322)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 2\
**Last updated:** [May 10, 2010, 1:50pm UTC](https://www.ruby-forum.com/t/how-to-implement-20-point-and-point-20-using-coerce/188322 "2010-05-10T13:50:27Z")

</div>

In Ruby, the operation of point - 20 20 - point are to be implemented. But the following code: class Point attr\_accessor :x, :y def initialize(x,y) @x, @y = x, y end def -(q) if (q.is\_a? Fixnum) …

---

## [\[Bug:trunk\] various behavior when reopening File twice](https://www.ruby-forum.com/t/bug-trunk-various-behavior-when-reopening-file-twice/182631)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [April 27, 2010, 2:37pm UTC](https://www.ruby-forum.com/t/bug-trunk-various-behavior-when-reopening-file-twice/182631 "2010-04-27T14:37:36Z")

</div>

e$B1sF#$G$9!#e(B e$B2\<5-$N$h$&$K!“FI$\_$+$1$Ne(B File e$B%$%s%9%?%s%9$r;H$C$Fe(B 2 e$B2se(B reopen e$B$7$?e(B e$B$H$-$N5sF0$,!”%P!\<%8%g%s$K$h$C$F$^$A$^$A$G$9!#e(B $ cat foo.txt 1 2 3 $ cat bar.txt a b c $ cat …

---

## [GRC: sending IQ samples of square is resulting with lot of noise](https://www.ruby-forum.com/t/grc-sending-iq-samples-of-square-is-resulting-with-lot-of-noise/182381)

<div class="topic-metadata">

**Author:** [@srinivas\_naga\_vutuk](https://www.ruby-forum.com/u/srinivas_naga_vutuk)\
**Replies:** 2\
**Last updated:** [January 28, 2010, 12:28pm UTC](https://www.ruby-forum.com/t/grc-sending-iq-samples-of-square-is-resulting-with-lot-of-noise/182381 "2010-01-28T12:28:48Z")

</div>

Hi, I am using Gnu Radio Companion, and USRP2 RFX1800 daughter card. I created on Tx end: a File source and USRP2 sink, and on Rx End: created USRP2 Source and A File sink. The two USRP2’s are connected with RF cable…

---

## [\[Bug:1.9\] PTY.check is broken](https://www.ruby-forum.com/t/bug-1-9-pty-check-is-broken/182212)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 2\
**Last updated:** [January 25, 2010, 9:47am UTC](https://www.ruby-forum.com/t/bug-1-9-pty-check-is-broken/182212 "2010-01-25T09:47:38Z")

</div>

e$B$J$+$@$G$9!#e(B PTY.checke$B$,$$$m$$$m$H2u$l$F$$$k$h$&$J5$$,$7$^$9!#e(B r20298e$B$K$h$k$He(B PTY.check(pid) to poll program termination. e$B$He(B e$B$$$&$3$H$J$N$K=\*N;$^$GBT$AB3$1$ke(B e$B%a%=%C%IK\\BN$J$N$Ke(Bint…

---

## [How to use more than one gem version in the same application](https://www.ruby-forum.com/t/how-to-use-more-than-one-gem-version-in-the-same-application/178663)

<div class="topic-metadata">

**Author:** [@darshana](https://www.ruby-forum.com/u/darshana)\
**Replies:** 2\
**Last updated:** [November 9, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/how-to-use-more-than-one-gem-version-in-the-same-application/178663 "2009-11-09T15:58:28Z")

</div>

Hi All, I am using Hpricot library for html parsing. The strange thing that I observed is some html parsing is working with hpricot gem version 0.6 and some with hpricot gem version 0.8.1. So, I tried with using spec…

---

## [Ruby Enterprise Edition 1.87 Experiences?](https://www.ruby-forum.com/t/ruby-enterprise-edition-1-87-experiences/176439)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 2\
**Last updated:** [September 30, 2009, 4:12pm UTC](https://www.ruby-forum.com/t/ruby-enterprise-edition-1-87-experiences/176439 "2009-09-30T16:12:13Z")

</div>

Hi friends. I’m running a Ubuntu 8.04 server at work that uses Ruby 1.87 as our interpreter of choice. Our hardware isn’t exactly top notch, so Ruby Enterprise Edition has quite the allure for us – especially with the …

---

## [What's your favorite IDE or Editor for Rails?](https://www.ruby-forum.com/t/whats-your-favorite-ide-or-editor-for-rails/172053)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 2\
**Last updated:** [July 14, 2009, 12:33am UTC](https://www.ruby-forum.com/t/whats-your-favorite-ide-or-editor-for-rails/172053 "2009-07-14T00:33:28Z")

</div>

Hi all, I’m trying to put together a comprehensive list of IDEs and Editors for Rails that people enjoy using. I want to append this list to the “New to Rails” topic I’ve been expanding upon. If you could take the t…

---

## [Modeling an internal messaging system, how would you do?](https://www.ruby-forum.com/t/modeling-an-internal-messaging-system-how-would-you-do/167982)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 2\
**Last updated:** [May 15, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/modeling-an-internal-messaging-system-how-would-you-do/167982 "2009-05-15T19:17:39Z")

</div>

Hey, on my site, I’ve got an internal messaging system. A message can be saved, sender and recipient are saved as properties. Then, also one status number is saved, which indicates whether the message is sent/ read/d…

---

## [Problems connecting wavfile\_source to usrp\_sink](https://www.ruby-forum.com/t/problems-connecting-wavfile-source-to-usrp-sink/167910)

<div class="topic-metadata">

**Author:** [@Justin\_GSEskesen](https://www.ruby-forum.com/u/Justin_GSEskesen)\
**Replies:** 2\
**Last updated:** [May 15, 2009, 4:54pm UTC](https://www.ruby-forum.com/t/problems-connecting-wavfile-source-to-usrp-sink/167910 "2009-05-15T16:54:50Z")

</div>

Greetings, I’m new to the list, though I’ve been using gnuradio for about 6 months now. I’m using the USRP connected to an acoustic transceiver for underwater communications/data collection. I’m having some trouble…

---

## [Usrp2: timestamp absolute?](https://www.ruby-forum.com/t/usrp2-timestamp-absolute/167709)

<div class="topic-metadata">

**Author:** [@Michael\_Sprauer](https://www.ruby-forum.com/u/Michael_Sprauer)\
**Replies:** 2\
**Last updated:** [May 11, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/usrp2-timestamp-absolute/167709 "2009-05-11T21:26:50Z")

</div>

Hello list, my question is about the time stamp in rx\_metadata-\>timestamp. I’ve got the rx\_streaming\_samples running and now I wondering what the time value is about. In the code I’ve found this: uint32\_t timestam…

---

## [Retrieving the testcase name in class inheriting unit testca](https://www.ruby-forum.com/t/retrieving-the-testcase-name-in-class-inheriting-unit-testca/166520)

<div class="topic-metadata">

**Author:** [@anilg](https://www.ruby-forum.com/u/anilg)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 6:20pm UTC](https://www.ruby-forum.com/t/retrieving-the-testcase-name-in-class-inheriting-unit-testca/166520 "2009-04-27T18:20:51Z")

</div>

Hi, How can i retrieve the testcase name, while running the testcases of the class inherited by unit testcase. For example in the below script I would like to access the testcase name in setup function. Testscript …

---

## [Git and vendor/rails](https://www.ruby-forum.com/t/git-and-vendor-rails/164132)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 2\
**Last updated:** [March 28, 2009, 4:29pm UTC](https://www.ruby-forum.com/t/git-and-vendor-rails/164132 "2009-03-28T16:29:50Z")

</div>

This is really a git question but the problem is with rails using git and others may have come across the problem. I have a branch on my application’s git repository with edge rails as a subproject checked out into v…

---

## [XML file comparison](https://www.ruby-forum.com/t/xml-file-comparison/161425)

<div class="topic-metadata">

**Author:** [@indium](https://www.ruby-forum.com/u/indium)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 2:35pm UTC](https://www.ruby-forum.com/t/xml-file-comparison/161425 "2009-02-26T14:35:50Z")

</div>

Hi, I need to compare XML files. Is there any quick way to do this in ruby or please share the code snippet. Kindly help me in this Thanks, Venkat

---

## [Urgent Output Layout](https://www.ruby-forum.com/t/urgent-output-layout/157382)

<div class="topic-metadata">

**Author:** [@rakenewuser](https://www.ruby-forum.com/u/rakenewuser)\
**Replies:** 2\
**Last updated:** [January 10, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/urgent-output-layout/157382 "2009-01-10T13:48:32Z")

</div>

Hi, Anyone can help me on how to layout my output? See my source code; Start Here report = Hash.new PTable.all(:conditions =\> \[‘status = “success” AND created\_at \>= ? AND created\_at \< ?’, Date.today.midnight, Date.to…

---

## [Help using ruby enumerator idioms](https://www.ruby-forum.com/t/help-using-ruby-enumerator-idioms/156700)

<div class="topic-metadata">

**Author:** [@mischa](https://www.ruby-forum.com/u/mischa)\
**Replies:** 2\
**Last updated:** [January 2, 2009, 9:34am UTC](https://www.ruby-forum.com/t/help-using-ruby-enumerator-idioms/156700 "2009-01-02T09:34:57Z")

</div>

Hi, In Ruby, when I see something like: h = \[\] x.each do … end h Usually means that I can refactor it to use map, inject, select, or reject. However, I am unsure how to do this for the code below: h = Hash…

---

## [Caching for rjs?](https://www.ruby-forum.com/t/caching-for-rjs/153265)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [November 15, 2008, 1:04pm UTC](https://www.ruby-forum.com/t/caching-for-rjs/153265 "2008-11-15T13:04:58Z")

</div>

I am using rjs to perform ajax deletes on objects within an array @instructions. The objects within the array @instructions vary depending on some other logic in my controller and is not dependent on direct correlati…

---

## [Unable to install sqlite3](https://www.ruby-forum.com/t/unable-to-install-sqlite3/152368)

<div class="topic-metadata">

**Author:** [@up1notch](https://www.ruby-forum.com/u/up1notch)\
**Replies:** 2\
**Last updated:** [November 3, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/unable-to-install-sqlite3/152368 "2008-11-03T17:20:52Z")

</div>

I am new to Ruby. Try out a web application, but when I tried to access the page, it has the following error (see ERROR 1 below). So I thought I may have not installed “sqlite3” and tried downloading “sqlite\_3-6-4.zip…

---

## [Looking for a somewhat old quote](https://www.ruby-forum.com/t/looking-for-a-somewhat-old-quote/152259)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 2\
**Last updated:** [November 1, 2008, 1:03am UTC](https://www.ruby-forum.com/t/looking-for-a-somewhat-old-quote/152259 "2008-11-01T01:03:21Z")

</div>

In the early Rails days a few renowed people rewrote a Java webapp in Rails, and they did it in a fraction of the time and with less lines of code than lines of XML config files. That was about four years ago or somet…

---

## [Design decision: Dynamically adding data question](https://www.ruby-forum.com/t/design-decision-dynamically-adding-data-question/151355)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 2\
**Last updated:** [October 20, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/design-decision-dynamically-adding-data-question/151355 "2008-10-20T18:59:25Z")

</div>

I need to give users the ability to optionally add metadata to documents. Another way to state this is the fact that users need to add at least 5 categories to a document. Basically what I want to do is dynamically ad…

---

## [Ot : aÃ±adir nuevos valores a un objet o en un each](https://www.ruby-forum.com/t/ot-aa-adir-nuevos-valores-a-un-objet-o-en-un-each/142311)

<div class="topic-metadata">

**Author:** [@miguel](https://www.ruby-forum.com/u/miguel)\
**Replies:** 2\
**Last updated:** [July 8, 2008, 10:48am UTC](https://www.ruby-forum.com/t/ot-aa-adir-nuevos-valores-a-un-objet-o-en-un-each/142311 "2008-07-08T10:48:39Z")

</div>

Hola amigos, yo molestando por aquÃ­ nuevamente tengo un metodo al cual le envio un xml, new\_from\_xml(xml) , al llamarlo le envio un xml con 20 nodos user, pero al parsearlo solo me muestra el ultimo nodo del xml, …

---

## [Obtener cantidad dÃ­as mes](https://www.ruby-forum.com/t/obtener-cantidad-da-as-mes/139520)

<div class="topic-metadata">

**Author:** [@boersnoes](https://www.ruby-forum.com/u/boersnoes)\
**Replies:** 2\
**Last updated:** [June 4, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/obtener-cantidad-da-as-mes/139520 "2008-06-04T18:00:00Z")

</div>

Hola foreros, quisiera saber como obtener la cantidad de dÃ­as de un mes en un aÃ±o cualquiera. Por ejemplo: La cantidad de dÃ­as de JunÃ­o del 2008 es 30. Gracias por la ayuda. :slight\_smile:

---

## [How do you figure out that a Parent model is trying to destroy it's children?](https://www.ruby-forum.com/t/how-do-you-figure-out-that-a-parent-model-is-trying-to-destroy-its-children/139157)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 2\
**Last updated:** [May 31, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/how-do-you-figure-out-that-a-parent-model-is-trying-to-destroy-its-children/139157 "2008-05-31T20:42:30Z")

</div>

I have a simple acts\_as\_list model structure where the Language holds a lot of Wikis. I want to validate inside Wikis so as to not destroy the last Wiki in a Language. However, when the Language is destroyed, I want…

---

## [Displaying my friends' friends in self-referential habtm](https://www.ruby-forum.com/t/displaying-my-friends-friends-in-self-referential-habtm/138269)

<div class="topic-metadata">

**Author:** [@pepa007](https://www.ruby-forum.com/u/pepa007)\
**Replies:** 2\
**Last updated:** [May 21, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/displaying-my-friends-friends-in-self-referential-habtm/138269 "2008-05-21T17:15:07Z")

</div>

Hi guys, I have a self-referential model of friends (based on Josh S.'s tutorial), i.e. basically sthg like tables ‘people’ and ‘relationships’. What I want is to display my friends together with their friends (and p…

---

## [Get parents via a condition on a child? (ActiveRecord)](https://www.ruby-forum.com/t/get-parents-via-a-condition-on-a-child-activerecord/137639)

<div class="topic-metadata">

**Author:** [@vvildo](https://www.ruby-forum.com/u/vvildo)\
**Replies:** 2\
**Last updated:** [May 15, 2008, 1:32am UTC](https://www.ruby-forum.com/t/get-parents-via-a-condition-on-a-child-activerecord/137639 "2008-05-15T01:32:36Z")

</div>

I come from a PHP background where I worked without an ORM. I’m having some trouble converting what I know will work in raw SQL into ActiveRecord models. I have the following two models (not my actual models, just as…

---

## [Llamadas a funciones con parÃ¡metros opcionales](https://www.ruby-forum.com/t/llamadas-a-funciones-con-para-metros-opcionales/136798)

<div class="topic-metadata">

**Author:** [@fernan2](https://www.ruby-forum.com/u/fernan2)\
**Replies:** 2\
**Last updated:** [May 6, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/llamadas-a-funciones-con-para-metros-opcionales/136798 "2008-05-06T14:56:26Z")

</div>

Hola a todos, se trata de una consulta para dejar el cÃ³digo mÃ¡s limpio… Ahora mismo tengo esta declaraciÃ³n: def campo(form, campo, tipo=“text”, clase\_campo="", texto\_label="") Y para la llamada pasando texto\_label…

---

## [parÃ¡metros url\_for](https://www.ruby-forum.com/t/para-metros-url-for/136197)

<div class="topic-metadata">

**Author:** [@calabriama](https://www.ruby-forum.com/u/calabriama)\
**Replies:** 2\
**Last updated:** [April 29, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/para-metros-url-for/136197 "2008-04-29T20:55:10Z")

</div>

Hola, estoy haciendo un url\_for y quiero pasarle una serie de parámetros pero sólo me coje el primero, los demás los ignora \<%=url\_for(:controller=\>“consultations”,:action=\>‘pintar’, :type=\>‘quality’, :num=\>2,:cant=\>3…

---

## [\[rails\] filtri come classi esterne: dove?](https://www.ruby-forum.com/t/rails-filtri-come-classi-esterne-dove/130671)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 2\
**Last updated:** [March 1, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/rails-filtri-come-classi-esterne-dove/130671 "2008-03-01T17:57:31Z")

</div>

Ciao! Mi sto studiando “The Rails way”, gran bel libro, lo consiglio. Comunque, in questo libro si parla anche di come costruire classi-filtro esterne. Ora: dov’Ã¨ il posto migliore per piazzare ste classi-filtro? Io …

---

## [DATA$B$N(Bencoding](https://www.ruby-forum.com/t/data-b-n-bencoding/128711)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [February 10, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/data-b-n-bencoding/128711 "2008-02-10T22:01:16Z")

</div>

e$B@\>;3OB9-$G$9!#e(B magic commente$B$,$"$l$Pe(BDATAe$B$Ne(Bencodinge$B$K$bH?1G$5$l$?J}$,e(B e$B$h$$$N$G$O$J$$$G$7$g$&$+e(B? % cat a.rb -- encoding: utf-8 -- p ENCODING p DATA.internal\_encoding p DATA.external\_enco…

---

## [Bug in Rails 2.0 when overloading a find\_by method?](https://www.ruby-forum.com/t/bug-in-rails-2-0-when-overloading-a-find-by-method/126232)

<div class="topic-metadata">

**Author:** [@carr0t](https://www.ruby-forum.com/u/carr0t)\
**Replies:** 2\
**Last updated:** [January 16, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/bug-in-rails-2-0-when-overloading-a-find-by-method/126232 "2008-01-16T16:27:20Z")

</div>

I’ve got an interesting replecatable bug that has sprung up since I migrated some code i’ve written from rails 1.2.3 to 2.0.2. I am using a mysql backend database, in which I am storing IPv4 addresses as 32 bit unsign…

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

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