# Top

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

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

---

## [How to use Binary Slicer](https://www.ruby-forum.com/t/how-to-use-binary-slicer/241399)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [April 3, 2015, 5:05pm UTC](https://www.ruby-forum.com/t/how-to-use-binary-slicer/241399 "2015-04-03T17:05:48Z")

</div>

Hey guys, Please, can you help me to use the Binary Slicer block? Is it a FLOAT block? What block do I have to use to convert a signal and put it in Binary Slicer input? Thank you!

---

## [Array#float\_sum (like math.fsum of Python)](https://www.ruby-forum.com/t/array-float-sum-like-math-fsum-of-python/232516)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 14, 2014, 4:08am UTC](https://www.ruby-forum.com/t/array-float-sum-like-math-fsum-of-python/232516 "2014-10-14T04:08:03Z")

</div>

Issue #10298 has been updated by Nobuyoshi N… It doesn’t improve the performance as Array.float\_sum, though. Feature #10298: Array#float\_sum (like math.fsum of Python) Author: Takeshi Nishimatsu Status: Feedback P…

---

## [\[ANN\] Ruby-GNOME2 2.0.1](https://www.ruby-forum.com/t/ann-ruby-gnome2-2-0-1/245386)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [May 25, 2013, 4:59am UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-2-0-1/245386 "2013-05-25T04:59:14Z")

</div>

Hi, The Ruby-GNOME2 project released Ruby-GNOME2 2.0.1: http://ruby-gnome2.sourceforge.jp/hiki.cgi?News\_20130525\_1 This release drops Ruby 1.8 support. If you want to use Ruby-GNOME2 with Ruby 1.8, please use Ruby-GN…

---

## [Error](https://www.ruby-forum.com/t/error/223557)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 10, 2012, 6:14am UTC](https://www.ruby-forum.com/t/error/223557 "2012-10-10T06:14:35Z")

</div>

Hi folks, Good Evening, After pushed my project into heroku server, i got an errror ActiveRecord::StatementInvalid (PG::Error: ERROR: relation “homes” does not exist https://lh4.googleusercontent.com/-qmT4xTmMvLo/…

---

## [ActiveRecord storing arrays and hashes](https://www.ruby-forum.com/t/activerecord-storing-arrays-and-hashes/222327)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [August 27, 2012, 2:15pm UTC](https://www.ruby-forum.com/t/activerecord-storing-arrays-and-hashes/222327 "2012-08-27T14:15:56Z")

</div>

Hi, When trying to store a Array or Hash to a string field, ActiveRecord automatically serializes them to yaml. If that’s so why is there a special option called serialize? – Azhagu Selvan http://tamizhgeek.in

---

## [Simplify the entry point url for rails 3.2](https://www.ruby-forum.com/t/simplify-the-entry-point-url-for-rails-3-2/226379)

<div class="topic-metadata">

**Author:** [@radical](https://www.ruby-forum.com/u/radical)\
**Replies:** 3\
**Last updated:** [July 27, 2012, 10:14am UTC](https://www.ruby-forum.com/t/simplify-the-entry-point-url-for-rails-3-2/226379 "2012-07-27T10:14:19Z")

</div>

Hi, if in rails 2.3 we can use this syntax map.connect ’ ', :controller =\> ‘people’, :action =\> ‘action’ the result it will simplify from http://localhost:3000/people/action to http://localhost:3000/ but in rails 3.…

---

## [What is the difference between Soap API and REST API?](https://www.ruby-forum.com/t/what-is-the-difference-between-soap-api-and-rest-api/220611)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 14, 2012, 12:44pm UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-soap-api-and-rest-api/220611 "2012-06-14T12:44:53Z")

</div>

Regards, Seeni Rafiyullah Khan A, \* \*

---

## [Anyway to limit amount of requests to no more then 20 requests per hour for each file?](https://www.ruby-forum.com/t/anyway-to-limit-amount-of-requests-to-no-more-then-20-requests-per-hour-for-each-file/220319)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 6, 2012, 12:25am UTC](https://www.ruby-forum.com/t/anyway-to-limit-amount-of-requests-to-no-more-then-20-requests-per-hour-for-each-file/220319 "2012-06-06T00:25:30Z")

</div>

Hello, Iam trying to avoid a seperate location {} for each file, instead just limit the amount of reqeusts per second based on each object. Iam sure there must be a way. Thanks Joseph

---

## [Recherche Associé Développeur (se) Rails / CTO associé(e)](https://www.ruby-forum.com/t/recherche-associe-developpeur-se-rails-cto-associe-e/218345)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 28, 2012, 7:30pm UTC](https://www.ruby-forum.com/t/recherche-associe-developpeur-se-rails-cto-associe-e/218345 "2012-03-28T19:30:20Z")

</div>

Contexte / Description de la société “The BnB Booking Heroes” est un projet de start-up qui sera actif sur le marché de l’hébergement d’exception chez l’habitant. Xbnb a pour projet de référencer des logements haut de…

---

## [GR upgrade fail due to UHD](https://www.ruby-forum.com/t/gr-upgrade-fail-due-to-uhd/217036)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 21, 2012, 9:31pm UTC](https://www.ruby-forum.com/t/gr-upgrade-fail-due-to-uhd/217036 "2012-02-21T21:31:01Z")

</div>

Hi! I have a strange problem with my Linux system. I want to build GNU Radio 3.5 on Arch Linux. The first thing I install is UHD: ~ ᐅ uhd\_find\_devices uhd\_find\_devices: error while loading shared libraries: libuhd.s…

---

## [Obtener el valor de un text\_field\_tag desde el controlador](https://www.ruby-forum.com/t/obtener-el-valor-de-un-text-field-tag-desde-el-controlador/216654)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [February 10, 2012, 1:41am UTC](https://www.ruby-forum.com/t/obtener-el-valor-de-un-text-field-tag-desde-el-controlador/216654 "2012-02-10T01:41:45Z")

</div>

Hola buen dia: Mi duda es la siguiente como recojo el valor de un text\_field\_tag desde mi controlador?? mi vista esta asi: \<%= text\_field\_tag “nombre”, “Jupiter” %\> \<%= link\_to\_remote “Mandar fecha”, como mando la f…

---

## [Native extension: arguments as a hash](https://www.ruby-forum.com/t/native-extension-arguments-as-a-hash/214464)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 2, 2011, 3:17pm UTC](https://www.ruby-forum.com/t/native-extension-arguments-as-a-hash/214464 "2011-12-02T15:17:01Z")

</div>

I’m working on a native extension in C for Ruby 1.8.7. The method I’m working on must have the signature: def receive(receiver, opts = {}) so that users can call: receiver(receiver, :timeout =\> 15) # :timeout is opti…

---

## [Retrieving ID from a POST URI](https://www.ruby-forum.com/t/retrieving-id-from-a-post-uri/214225)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [November 28, 2011, 12:51pm UTC](https://www.ruby-forum.com/t/retrieving-id-from-a-post-uri/214225 "2011-11-28T12:51:47Z")

</div>

To note, I only have the URI in a string as its from a POST from an external API as JSON Data. Basically I need this: http://www.someapp.com/events/12345 I just need the 12345 Obviously, params\[:id\] won’t work so I’…

---

## [Blank Adsense ads on certain pages](https://www.ruby-forum.com/t/blank-adsense-ads-on-certain-pages/213101)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [October 25, 2011, 2:29am UTC](https://www.ruby-forum.com/t/blank-adsense-ads-on-certain-pages/213101 "2011-10-25T02:29:37Z")

</div>

I have inserted my adsense code into my site in certain areas, and the issue is very strange: ads only randomly work on some pages, and others the ad block still ‘loads’, but nothing appears. Just a black box. When yo…

---

## [Memcache issue](https://www.ruby-forum.com/t/memcache-issue/206604)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [May 5, 2011, 6:28pm UTC](https://www.ruby-forum.com/t/memcache-issue/206604 "2011-05-05T18:28:02Z")

</div>

Hello, I am using PHP to connect to memcache. I connect memcache service in the PHP code as follows: $memcache = new Memcache; $memcache-\>connect(‘127.0.0.1’, 11211); //connect to memcached server Then when I connec…

---

## [Developer wanted php, Ruby on Rails, SQL based in Berlin!](https://www.ruby-forum.com/t/developer-wanted-php-ruby-on-rails-sql-based-in-berlin/201246)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [January 3, 2011, 4:31pm UTC](https://www.ruby-forum.com/t/developer-wanted-php-ruby-on-rails-sql-based-in-berlin/201246 "2011-01-03T16:31:31Z")

</div>

Based in Berlin we are looking for great developer for php, Ruby on Rails, SQL (male/female) Your tasks would be include: Independent project work Development and maintenance of projects in php, mysql and Ruby on Ra…

---

## [Ruby frecuencias de radio?](https://www.ruby-forum.com/t/ruby-frecuencias-de-radio/201137)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [December 31, 2010, 9:34am UTC](https://www.ruby-forum.com/t/ruby-frecuencias-de-radio/201137 "2010-12-31T09:34:50Z")

</div>

hola a todos me preguntaba si bajo ruby exite alguna manera de reproducir sonidos bajo cierta frecuencia ejemplo reproducir un archivo de audio a 32mhz?? y como poder “escuchar” a cierta frecuencia?

---

## [\[Ruby 1.9-Feature#4146\]\[Open\] Improvement of Symbol and Proc](https://www.ruby-forum.com/t/ruby-1-9-feature-4146-open-improvement-of-symbol-and-proc/200387)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [December 18, 2010, 5:48am UTC](https://www.ruby-forum.com/t/ruby-1-9-feature-4146-open-improvement-of-symbol-and-proc/200387 "2010-12-18T05:48:24Z")

</div>

Feature #4146: Improvement of Symbol and Proc http://redmine.ruby-lang.org/issues/show/4146 起票者: Nobuyoshi N. ステータス: Open, 優先度: Normal カテゴリ: core 現在Symbol#to\_procで %w\[12 45 32\].map(&:to\_i) のようなことはできますが、 引数を付けてメソッドを…

---

## [Bulding a crash-proof eval(), is it possible?](https://www.ruby-forum.com/t/bulding-a-crash-proof-eval-is-it-possible/198710)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [November 6, 2010, 11:53am UTC](https://www.ruby-forum.com/t/bulding-a-crash-proof-eval-is-it-possible/198710 "2010-11-06T11:53:13Z")

</div>

I’m building an app which must execute user-submitted bits of Ruby code. Obviously, eval() does this. Illustration: user\_code = “‘hello’.upcase” result = eval(user\_code) puts "the code evaluated to: " + result But i…

---

## [Problem about config one virtual host with separated server blocks](https://www.ruby-forum.com/t/problem-about-config-one-virtual-host-with-separated-server-blocks/194521)

<div class="topic-metadata">

**Author:** [@speedfirst](https://www.ruby-forum.com/u/speedfirst)\
**Replies:** 3\
**Last updated:** [September 6, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/problem-about-config-one-virtual-host-with-separated-server-blocks/194521 "2010-09-06T16:52:23Z")

</div>

Is it possible to write a config like this? server { server\_name www.example.com; location / { … } } server { server\_name www.example.com; listen 143; ssl on; ssl\_certificate example.crt; ssl\_certificate\_key …

---

## [Can not execute ruby script/generate scaffold Product Admin](https://www.ruby-forum.com/t/can-not-execute-ruby-script-generate-scaffold-product-admin/193789)

<div class="topic-metadata">

**Author:** [@irfan](https://www.ruby-forum.com/u/irfan)\
**Replies:** 3\
**Last updated:** [August 25, 2010, 12:19pm UTC](https://www.ruby-forum.com/t/can-not-execute-ruby-script-generate-scaffold-product-admin/193789 "2010-08-25T12:19:31Z")

</div>

in my depot application, i need to execute this command correctly…but I can not do anything! the command could not execute as it is stated and figured in the book. if there is an equivalent command for creating and M…

---

## [How to develop a chat server with Ruby?](https://www.ruby-forum.com/t/how-to-develop-a-chat-server-with-ruby/193103)

<div class="topic-metadata">

**Author:** [@Eva](https://www.ruby-forum.com/u/Eva)\
**Replies:** 3\
**Last updated:** [August 12, 2010, 1:34am UTC](https://www.ruby-forum.com/t/how-to-develop-a-chat-server-with-ruby/193103 "2010-08-12T01:34:12Z")

</div>

Do you have any example for reference? Thanks.

---

## [How to determine array element number in a each loop](https://www.ruby-forum.com/t/how-to-determine-array-element-number-in-a-each-loop/192357)

<div class="topic-metadata">

**Author:** [@kaged](https://www.ruby-forum.com/u/kaged)\
**Replies:** 3\
**Last updated:** [July 30, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/how-to-determine-array-element-number-in-a-each-loop/192357 "2010-07-30T17:51:41Z")

</div>

Hello all, newbie here. The title is quite self explanatory: I am in dummy\_array.each do |a| #code here end and I want to know which element (the number n in nth element) of the dummy\_array. Thanks in advance :sli…

---

## [Synchronized Circular Buffer](https://www.ruby-forum.com/t/synchronized-circular-buffer/226069)

<div class="topic-metadata">

**Author:** [@samonderous](https://www.ruby-forum.com/u/samonderous)\
**Replies:** 3\
**Last updated:** [July 1, 2010, 1:14pm UTC](https://www.ruby-forum.com/t/synchronized-circular-buffer/226069 "2010-07-01T13:14:59Z")

</div>

I’m relatively new to Ruby, having switched from a PHP and Java background, and I’m having some trouble with the Monitor class trying to implement a synchronised circular buffer. The other posts here on synchronised m…

---

## [JRuby rake not working!](https://www.ruby-forum.com/t/jruby-rake-not-working/182992)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 3\
**Last updated:** [March 5, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/jruby-rake-not-working/182992 "2010-03-05T16:54:51Z")

</div>

Hello all, I am trying out Rails using JRuby. I set up a Rails app using netbeans, and installed all the necessary gems, including activerecord-jdbc-adapter, and rake. However, whenever I try to run a migration usi…

---

## [Attaching files through attachment\_fu](https://www.ruby-forum.com/t/attaching-files-through-attachment-fu/174000)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 3\
**Last updated:** [August 19, 2009, 11:07am UTC](https://www.ruby-forum.com/t/attaching-files-through-attachment-fu/174000 "2009-08-19T11:07:53Z")

</div>

Hi I wish to upload a file not from the view but from the controller itself. I have the file’s path and mimetype and size. I would like to know How it can be done directly from the controller Thanks in Advance

---

## [Is there anyway to get method name in view?](https://www.ruby-forum.com/t/is-there-anyway-to-get-method-name-in-view/172414)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 3\
**Last updated:** [July 21, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/is-there-anyway-to-get-method-name-in-view/172414 "2009-07-21T15:54:11Z")

</div>

I have tried to search in google with keyword “rails get method name in view” but i couldn’t find any answer In this case i want to get method name in view for example http://localhost:3000/todo/all\_project\_todos/14 …

---

## [Unabe to restart mongrel](https://www.ruby-forum.com/t/unabe-to-restart-mongrel/167856)

<div class="topic-metadata">

**Author:** [@gypsygoks](https://www.ruby-forum.com/u/gypsygoks)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 10:07am UTC](https://www.ruby-forum.com/t/unabe-to-restart-mongrel/167856 "2009-05-13T10:07:05Z")

</div>

Hello, I have upgraded my Redmine installation for my ite using SVN. After that i have restarted mongrel and it failed. It is never starting again. I used this command – mongrel\_rails start -d The error reported is :– …

---

## [Rewrite configuration in web space (like .htaccess)](https://www.ruby-forum.com/t/rewrite-configuration-in-web-space-like-htaccess/165633)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 16, 2009, 12:51am UTC](https://www.ruby-forum.com/t/rewrite-configuration-in-web-space-like-htaccess/165633 "2009-04-16T00:51:04Z")

</div>

Hi, is there a way to let users without access to nginx configuration set rewrite rules? Something like .htaccess in apache with AllowOverride option, without need to reload server configuration. Thanks, Martin

---

## [Has 'ping' been dropped from 1.9.1?](https://www.ruby-forum.com/t/has-ping-been-dropped-from-1-9-1/162877)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 3\
**Last updated:** [March 15, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/has-ping-been-dropped-from-1-9-1/162877 "2009-03-15T19:10:03Z")

</div>

=begin RUBY\_REVISION =\> 21895 =end require ‘ping’ LoadError: no such file to load – ping from (irb):1:in \`require’ from (irb):1 – John M. 07739 171 531 MSc (DIC) Timezone: GMT

---

## [Any good tutorial about upgrade ruby to 1.9.1 and with rails 2.3?](https://www.ruby-forum.com/t/any-good-tutorial-about-upgrade-ruby-to-1-9-1-and-with-rails-2-3/162313)

<div class="topic-metadata">

**Author:** [@chenillen](https://www.ruby-forum.com/u/chenillen)\
**Replies:** 3\
**Last updated:** [March 9, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/any-good-tutorial-about-upgrade-ruby-to-1-9-1-and-with-rails-2-3/162313 "2009-03-09T15:39:47Z")

</div>

Hi there, Just want to upgrade to ruby1.9.1, but some important gems such as mysql, fastthread, mongrel are not compatible with the newest version, anyone has some good tutorial for recommendation? Thanks, chenillen …

---

## [Dynamic select box](https://www.ruby-forum.com/t/dynamic-select-box/160579)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 3\
**Last updated:** [February 19, 2009, 6:00am UTC](https://www.ruby-forum.com/t/dynamic-select-box/160579 "2009-02-19T06:00:15Z")

</div>

Hi everyone, I have a problem. I want to display a different select box wether the current user is an admin or an user. So I thought I could do this in my view where my form is displayed : \<%= f.label(:role\_id…

---

## [Custom module for ActionController no longer works in Rails 2.2](https://www.ruby-forum.com/t/custom-module-for-actioncontroller-no-longer-works-in-rails-2-2/159454)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 5, 2009, 1:31am UTC](https://www.ruby-forum.com/t/custom-module-for-actioncontroller-no-longer-works-in-rails-2-2/159454 "2009-02-05T01:31:00Z")

</div>

I am using some code for in place JS editing with validation, that worked up until Rails 2.2. After upgrade, the method can’t be find, so apparently its not overridge the right class or isn’t being included as before.…

---

## [MiniTest & Test::Unit::TestResult in Ruby 1.9.1](https://www.ruby-forum.com/t/minitest-test-testresult-in-ruby-1-9-1/158835)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 3\
**Last updated:** [January 28, 2009, 9:00pm UTC](https://www.ruby-forum.com/t/minitest-test-testresult-in-ruby-1-9-1/158835 "2009-01-28T21:00:26Z")

</div>

It looks like Test::Unit::TestResult \[1\] has disappeared in Ruby 1.9.1. Is this correct? In fact, it looks like requiring ‘test/unit’ now just gets you a thin wrapper around MiniTest. Is this correct? In Mocha’s ac…

---

## [Javascript\_include within single views](https://www.ruby-forum.com/t/javascript-include-within-single-views/155466)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [December 12, 2008, 10:12am UTC](https://www.ruby-forum.com/t/javascript-include-within-single-views/155466 "2008-12-12T10:12:35Z")

</div>

Are you allowed to use the javascript\_include\_tag to include javascript files for specific views? I have included the default javascript files in the element of my site layout file, but when I try and include a java…

---

## [Ruby console problem](https://www.ruby-forum.com/t/ruby-console-problem/151796)

<div class="topic-metadata">

**Author:** [@Sal\_eSM](https://www.ruby-forum.com/u/Sal_eSM)\
**Replies:** 3\
**Last updated:** [November 18, 2008, 6:43am UTC](https://www.ruby-forum.com/t/ruby-console-problem/151796 "2008-11-18T06:43:44Z")

</div>

Hi, I am using InstantRails in XP SP2. When I try to open a Ruby console window from InstantRails menu system I only get a Dos window. This is, probably, a problem in my registry configuration and happens even when I …

---

## [Como puedo hacer varios rescues en una action](https://www.ruby-forum.com/t/como-puedo-hacer-varios-rescues-en-una-action/128496)

<div class="topic-metadata">

**Author:** [@miguel](https://www.ruby-forum.com/u/miguel)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 10:22am UTC](https://www.ruby-forum.com/t/como-puedo-hacer-varios-rescues-en-una-action/128496 "2008-02-08T10:22:16Z")

</div>

Hola como estan! tengo una duda respecto al manejo de exceptions en rails . en mi modelo User.rb , tengo un before\_destroy :dont\_destroy\_admin def dont\_destroy\_admin raise “No podemos eliminar al admin” if self.role…

---

## [How to use "link\_to" to deliver a parameter?](https://www.ruby-forum.com/t/how-to-use-link-to-to-deliver-a-parameter/124951)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 3\
**Last updated:** [January 4, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/how-to-use-link-to-to-deliver-a-parameter/124951 "2008-01-04T13:07:36Z")

</div>

Hello, there: I wish A link to invoke such a action together with the parameter “zh\_CN” “cookies/switch\_language/zh\_CH” to switch language sellection, and I use the following code: \<%= link\_to ‘Chinese’, :controller…

---

## [Advice two almost identical controllers](https://www.ruby-forum.com/t/advice-two-almost-identical-controllers/121879)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 3\
**Last updated:** [December 2, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/advice-two-almost-identical-controllers/121879 "2007-12-02T16:39:02Z")

</div>

Hi List, I have a table called invoices where I store all the invoices, the ones that I create and the ones that I received. They have the same fields, the same views, the same data, but I must differentiate between …

---

## [Duda sobre ActiveRecord many to many](https://www.ruby-forum.com/t/duda-sobre-activerecord-many-to-many/121016)

<div class="topic-metadata">

**Author:** [@Omar\_J](https://www.ruby-forum.com/u/Omar_J)\
**Replies:** 3\
**Last updated:** [November 26, 2007, 12:10am UTC](https://www.ruby-forum.com/t/duda-sobre-activerecord-many-to-many/121016 "2007-11-26T00:10:04Z")

</div>

Buen dÃ­a, primero que nada me presento, soy Omar J. Becerra Ingeniero en Sistemas de la UAG (Universidad autonoma de guadalajara) pues la duda es esto supongamos que tenemos en el modelo las entidades ( Seguro, Bene…

---

## [Test::Unit Equivalent of JUnit @AfterClass](https://www.ruby-forum.com/t/test-unit-equivalent-of-junit-afterclass/119587)

<div class="topic-metadata">

**Author:** [@patrickjoyce](https://www.ruby-forum.com/u/patrickjoyce)\
**Replies:** 3\
**Last updated:** [November 8, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/test-unit-equivalent-of-junit-afterclass/119587 "2007-11-08T16:53:20Z")

</div>

Hey, Does anyone know a way to do the equivalent of @AfterClass in Test::Unit? I need to execute some code once after ALL the test\_\* methods in a Test::Unit::TestCase have run (teardown runs after EACH method). The …

---

## [Mocking Workers in Backgroundrb](https://www.ruby-forum.com/t/mocking-workers-in-backgroundrb/118244)

<div class="topic-metadata">

**Author:** [@codejoy](https://www.ruby-forum.com/u/codejoy)\
**Replies:** 3\
**Last updated:** [October 31, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/mocking-workers-in-backgroundrb/118244 "2007-10-31T20:29:05Z")

</div>

Hi Has anyone mocked a call like the following for backgroundrb? MiddleMan.new\_worker(:class =\> :admin\_email\_worker, :args =\> params \[:email\]) I cannot seem to find the correct manner to do it. Would have liked to b…

---

## [Bypassing XML inconsistencies with REXML::StreamListener](https://www.ruby-forum.com/t/bypassing-xml-inconsistencies-with-rexml-streamlistener/114759)

<div class="topic-metadata">

**Author:** [@nutsmuggler](https://www.ruby-forum.com/u/nutsmuggler)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/bypassing-xml-inconsistencies-with-rexml-streamlistener/114759 "2007-09-25T23:09:52Z")

</div>

Hello folks. I am trying to build a simple XML parser to extract data from IBM translation manager memories. Here is a sample os such memory files: 0000000001 00012200000001178876638English(U.S.)ITALIANIBMIDDOCBB1…

---

## [A little help with routes](https://www.ruby-forum.com/t/a-little-help-with-routes/114198)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 3\
**Last updated:** [September 9, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/a-little-help-with-routes/114198 "2007-09-09T19:20:55Z")

</div>

hi, i’m setting up some routes, but i’ve a little problem. i’ve written map.connect ‘’, :controller =\> ‘/categories’, :action =\> :index and tryed to show localhost:3000…ok, it works…partially, it changes the url to…

---

## [Test/Unit or RSpec](https://www.ruby-forum.com/t/test-unit-or-rspec/113455)

<div class="topic-metadata">

**Author:** [@buendia](https://www.ruby-forum.com/u/buendia)\
**Replies:** 3\
**Last updated:** [August 31, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/test-unit-or-rspec/113455 "2007-08-31T14:42:38Z")

</div>

Hi, I’m going to start my first real rails project, but I still can’t find the answer of this questions: What approach is better - TDD or BDD? Which of these two - Test/Unit or RSpec, makes tests easier to write, re…

---

## [Upgrade without downtime?](https://www.ruby-forum.com/t/upgrade-without-downtime/112015)

<div class="topic-metadata">

**Author:** [@piet](https://www.ruby-forum.com/u/piet)\
**Replies:** 3\
**Last updated:** [August 14, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/upgrade-without-downtime/112015 "2007-08-14T20:23:49Z")

</div>

Hi List! I’ve been thinking for a while about how to upgrade a running rails installation without any downtime for the users. Let’s say you fixed some bugs without doing any changes to the db schema or anything that …

---

## [Error con has\_many y through](https://www.ruby-forum.com/t/error-con-has-many-y-through/106814)

<div class="topic-metadata">

**Author:** [@aitor](https://www.ruby-forum.com/u/aitor)\
**Replies:** 3\
**Last updated:** [June 14, 2007, 1:32pm UTC](https://www.ruby-forum.com/t/error-con-has-many-y-through/106814 "2007-06-14T13:32:37Z")

</div>

si seguro que es una tonterÃ­a pero no se donde puede estar el error class Family \< ActiveRecord::Base has\_many :attributesfamilies has\_many :attributes, :through =\> :attributesfamilies # esta linea si la comento se …

---

## [Has and belongs to many with a single table](https://www.ruby-forum.com/t/has-and-belongs-to-many-with-a-single-table/106745)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 3\
**Last updated:** [June 14, 2007, 1:14am UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-with-a-single-table/106745 "2007-06-14T01:14:56Z")

</div>

Is it posible to implement “Has and belongs to many” with a single table? Like this: table events id: integer description: text table related\_events id\_event: integer id\_related\_event: integer class Even…

---

## [\[Annoying\] Flash not getting cleared after upgrade to 1.2.1](https://www.ruby-forum.com/t/annoying-flash-not-getting-cleared-after-upgrade-to-1-2-1/82696)

<div class="topic-metadata">

**Author:** [@nardman](https://www.ruby-forum.com/u/nardman)\
**Replies:** 3\
**Last updated:** [January 19, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/annoying-flash-not-getting-cleared-after-upgrade-to-1-2-1/82696 "2007-01-19T22:13:08Z")

</div>

App uses db sessions development has progressed over the last months through edge → 1.2RC1 → 1.2RC2 today we hooked our vendor directory to http://dev.rubyonrails.org/svn/rails/tags/rel\_1-2-1 and now we see the sam…

---

## [IO#lineno always returns 0](https://www.ruby-forum.com/t/io-lineno-always-returns-0/81019)

<div class="topic-metadata">

**Author:** [@Minero\_A](https://www.ruby-forum.com/u/Minero_A)\
**Replies:** 3\
**Last updated:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/io-lineno-always-returns-0/81019 "2007-01-19T16:31:46Z")

</div>

e$B@DLZ$G$9!#e(B HEAD e$B$Ge(B IO#lineno e$B$,\>o$Ke(B 0 e$B$rJV$9$h$&$K$J$C$F$$$^$9!#e(B ~/c/bitclust % rm -f tmp ~/c/bitclust % echo a \> tmp ~/c/bitclust % echo b \>\> tmp ~/c/bitclust % echo c \>\> tmp ~/c/bitclust %…

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

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