# Top

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

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

---

## [Refactoring controllers vs. actions](https://www.ruby-forum.com/t/refactoring-controllers-vs-actions/104757)

<div class="topic-metadata">

**Author:** [@spdemac](https://www.ruby-forum.com/u/spdemac)\
**Replies:** 2\
**Last updated:** [May 22, 2007, 1:10pm UTC](https://www.ruby-forum.com/t/refactoring-controllers-vs-actions/104757 "2007-05-22T13:10:14Z")

</div>

I just completed an exercise of breaking down an existing project and mapping out the controllers and actions, then re-factoring them into some perhaps more RESTful. Though I could be wrong since I am still grasping R…

---

## [\* Very important: Repent, Completely trust in God only and,](https://www.ruby-forum.com/t/very-important-repent-completely-trust-in-god-only-and/104660)

<div class="topic-metadata">

**Author:** [@Secret](https://www.ruby-forum.com/u/Secret)\
**Replies:** 2\
**Last updated:** [May 21, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/very-important-repent-completely-trust-in-god-only-and/104660 "2007-05-21T18:42:33Z")

</div>

There is a section below with the title “Atheism and Evolutionism are WRONG.” All those who have sinned deserve to suffer in Hell forever. “Pride” is an example of a sin. Repent (be truly sorry for your sins; beg f…

---

## [Beginner Problems with many-to-many Relations](https://www.ruby-forum.com/t/beginner-problems-with-many-to-many-relations/86981)

<div class="topic-metadata">

**Author:** [@Pietropizzi](https://www.ruby-forum.com/u/Pietropizzi)\
**Replies:** 2\
**Last updated:** [February 27, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/beginner-problems-with-many-to-many-relations/86981 "2007-02-27T16:50:16Z")

</div>

Hello people! I’m quite new to Rails and I’ve got a project to do that requires some many-to-many relations right at the beginning. I’ll describe what I want to do, maybe you could tell me how to realize that. I have…

---

## [No rhtml, rxml, rjs or delegate template found for sent](https://www.ruby-forum.com/t/no-rhtml-rxml-rjs-or-delegate-template-found-for-sent/84877)

<div class="topic-metadata">

**Author:** [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Replies:** 2\
**Last updated:** [February 8, 2007, 12:48pm UTC](https://www.ruby-forum.com/t/no-rhtml-rxml-rjs-or-delegate-template-found-for-sent/84877 "2007-02-08T12:48:05Z")

</div>

i m trying to send e-mail. i have generated model, controller & view file for it. but its giving me error like “No rhtml, rxml, rjs or delegate template found for sent” model: class MyMailer \< ActionMailer::Base de…

---

## [Gc for layout.bin\_window](https://www.ruby-forum.com/t/gc-for-layout-bin-window/83334)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [January 25, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/gc-for-layout-bin-window/83334 "2007-01-25T14:56:00Z")

</div>

hi, lay=Gtk::Layout.new gc=Gdk::GC.new(lay.bin\_window) gives /usr/lib64/ruby/site\_ruby/1.8/rubygems/custom\_require.rb: line 27 Gdk-CRITICAL \*\*:gdk\_gc\_new: assertion drawable != NULL' failed examples/layout\_gc.rb:6:i…

---

## [Integrar usuarios de foro PHPBB en una web rails](https://www.ruby-forum.com/t/integrar-usuarios-de-foro-phpbb-en-una-web-rails/77242)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 26, 2006, 2:22pm UTC](https://www.ruby-forum.com/t/integrar-usuarios-de-foro-phpbb-en-una-web-rails/77242 "2006-11-26T14:22:08Z")

</div>

Hola! bueno hace algunos meses hize una web(en php) y ahora la estoy trasladando a rails. EL unico problema que me ha surgido es a la hora de integrar los usuarios del PHPBB a la web. Podria pasarme a otro sistema de …

---

## [Re: What's the difference between send and instance\_eval?](https://www.ruby-forum.com/t/re-whats-the-difference-between-send-and-instance-eval/73754)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [October 26, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/re-whats-the-difference-between-send-and-instance-eval/73754 "2006-10-26T23:04:52Z")

</div>

I may not understand it well, but I don’t like it. The two methods are so similar that the only way to figure out the difference is to find cases that will make it hard or impossible to use one of them. It should be …

---

## [Seg Fault - crashed our server](https://www.ruby-forum.com/t/seg-fault-crashed-our-server/70250)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 2\
**Last updated:** [September 28, 2006, 7:49am UTC](https://www.ruby-forum.com/t/seg-fault-crashed-our-server/70250 "2006-09-28T07:49:09Z")

</div>

We were using ferret (with acts\_as\_ferret) on our production boxes. Everything was going OK for a few days then we got a seg fault from it that brought down the box. The specs: Rails 1.1.6 Ruby 1.8.4 Ferret 0.10.6 R…

---

## [SHA1 and SHA2](https://www.ruby-forum.com/t/sha1-and-sha2/66591)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 2\
**Last updated:** [August 27, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/sha1-and-sha2/66591 "2006-08-27T16:37:21Z")

</div>

Question out of curiousity here - I notice particularly with various authentication plugins and books like AWDWR and Ruby for Rails, SHA1 encryption is implemented. In Rails Recipes (Chad F.) the authentication recip…

---

## [Iteration anomalu](https://www.ruby-forum.com/t/iteration-anomalu/245787)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [July 19, 2013, 9:31am UTC](https://www.ruby-forum.com/t/iteration-anomalu/245787 "2013-07-19T09:31:09Z")

</div>

Surely this is a FAQ but I can’t figure out how I would search for an explanation for this behavior. In short, this code a = \[\[1,2,3\], \[4,5,6\], \[7,8,9\]\] for x in a do print x, “\\n” end for i in \[0…a.length\] do pri…

---

## [Join table query error](https://www.ruby-forum.com/t/join-table-query-error/228198)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 4\
**Last updated:** [April 13, 2013, 3:17pm UTC](https://www.ruby-forum.com/t/join-table-query-error/228198 "2013-04-13T15:17:02Z")

</div>

Hi, I’m learning Rails and am getting an error following a query. I think I’m missing something simple and would appreciate guidance. In controller: @pictures = Question.find(session\[:question\_id\]).pictures # Query …

---

## [Simple method & array question](https://www.ruby-forum.com/t/simple-method-array-question/220609)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [June 14, 2012, 6:43pm UTC](https://www.ruby-forum.com/t/simple-method-array-question/220609 "2012-06-14T18:43:15Z")

</div>

Hi, Sorry for the newbie question but how can I make a method which takes only an array as an argument and returns the same array as the output? For example, I tried: def repeat \*arg repeated = \*arg p repeated end …

---

## [TypeError in Classified#show](https://www.ruby-forum.com/t/typeerror-in-classified-show/213465)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [November 3, 2011, 2:35pm UTC](https://www.ruby-forum.com/t/typeerror-in-classified-show/213465 "2011-11-03T14:35:16Z")

</div>

hELLO…I AM IN DOUBT WITH THIS,… THANKS TypeError in Classified#show Showing app/views/classified/show.rhtml where line #17 raised: no implicit conversion to float from nil Extracted source (around line #17): 14: 1…

---

## [Render works fine but redirect\_to does not](https://www.ruby-forum.com/t/render-works-fine-but-redirect-to-does-not/205452)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 7, 2011, 6:47am UTC](https://www.ruby-forum.com/t/render-works-fine-but-redirect-to-does-not/205452 "2011-04-07T06:47:11Z")

</div>

Hello, I have an application where I am getting an odd error. If I do redirect\_to url I get a DoubleRenderError. If I change that redirect\_to url to a render :text =\> url. The action works fine. Why would I receive t…

---

## [Dependant destroy with altered \_id name in join table](https://www.ruby-forum.com/t/dependant-destroy-with-altered-id-name-in-join-table/202310)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 27, 2011, 9:55am UTC](https://www.ruby-forum.com/t/dependant-destroy-with-altered-id-name-in-join-table/202310 "2011-01-27T09:55:41Z")

</div>

I have a “Dependant destroy” and it wont work as its reference is not standard . By this I mean that I have changed the XXX\_id to be something else as I had clashes: ambiguous relationships. class Product \< ActiveReco…

---

## [Newbie - Rails 3 authentication question (Devise)](https://www.ruby-forum.com/t/newbie-rails-3-authentication-question-devise/198406)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [November 9, 2010, 6:33pm UTC](https://www.ruby-forum.com/t/newbie-rails-3-authentication-question-devise/198406 "2010-11-09T18:33:49Z")

</div>

Hello! I’m working on my first Rails app and I have a question regarding authentication. I already have authentication for signing up, logging in, logging out, etc. What I need is an account email activation function…

---

## [Basic question on controller; "no route matches for hello/world"](https://www.ruby-forum.com/t/basic-question-on-controller-no-route-matches-for-hello-world/195924)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 4\
**Last updated:** [October 3, 2010, 10:55am UTC](https://www.ruby-forum.com/t/basic-question-on-controller-no-route-matches-for-hello-world/195924 "2010-10-03T10:55:11Z")

</div>

Just starting out with RoR3, and have tried to render first page. Here is code for hello\_controller.rb class HelloController \< ApplicationController def world render :text =\> “ Hello world!” end end Did not make a…

---

## [Get the beginning of the hour and the end of the hour](https://www.ruby-forum.com/t/get-the-beginning-of-the-hour-and-the-end-of-the-hour/195055)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 4\
**Last updated:** [September 16, 2010, 2:03am UTC](https://www.ruby-forum.com/t/get-the-beginning-of-the-hour-and-the-end-of-the-hour/195055 "2010-09-16T02:03:21Z")

</div>

I would like to Get the beginning of the current hour and the end of the current hour in the regular time format Wed Sep 15 15:45:47 -0600 2010 I would like to get Wed Sep 15 15:00:00 -0600 2010 and Wed Sep 15 15:59:5…

---

## [Newbie - WEbrick, config/routes.rb and multiple instances](https://www.ruby-forum.com/t/newbie-webrick-config-routes-rb-and-multiple-instances/190772)

<div class="topic-metadata">

**Author:** [@tensaiji](https://www.ruby-forum.com/u/tensaiji)\
**Replies:** 4\
**Last updated:** [June 27, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/newbie-webrick-config-routes-rb-and-multiple-instances/190772 "2010-06-27T15:50:52Z")

</div>

Hi, I’ve been going through the book Head First RoR, and in it I’ve been asked to make a tickets app, and then an events app. So: $ rails tickets $ cd tickets $ ruby script/generate scaffold ticket name:string seat…

---

## [Test that a string is not displayed in view](https://www.ruby-forum.com/t/test-that-a-string-is-not-displayed-in-view/182353)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 4\
**Last updated:** [January 27, 2010, 10:02am UTC](https://www.ruby-forum.com/t/test-that-a-string-is-not-displayed-in-view/182353 "2010-01-27T10:02:30Z")

</div>

How can I test that a view does not display a particular string any where? E.g., the particular string is “I should not be here”. In my controller test, I have: assert\_select “div”, /I should not be here/, false bu…

---

## [Find, using a link instead of a form](https://www.ruby-forum.com/t/find-using-a-link-instead-of-a-form/177522)

<div class="topic-metadata">

**Author:** [@snlsn](https://www.ruby-forum.com/u/snlsn)\
**Replies:** 4\
**Last updated:** [October 20, 2009, 3:02am UTC](https://www.ruby-forum.com/t/find-using-a-link-instead-of-a-form/177522 "2009-10-20T03:02:03Z")

</div>

Hello; Here’s the latest puzzle stumping me. Seems it should be simple but I’m feeling like a moron. I would like to have a link that, when clicked, returns the results of a pre-set find. Here’s the deal. I’m working…

---

## [Saving and updating multiple objects](https://www.ruby-forum.com/t/saving-and-updating-multiple-objects/177323)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 4\
**Last updated:** [October 15, 2009, 2:29am UTC](https://www.ruby-forum.com/t/saving-and-updating-multiple-objects/177323 "2009-10-15T02:29:00Z")

</div>

Hi All. First to start, please bare with me as I’m really confused on all this and have been stuck for about a day now, so I’m not sure if I will even be asking the right questions or not, but here goes. I’m trying to…

---

## [Auto\_complete text field not showing drop-down box properly](https://www.ruby-forum.com/t/auto-complete-text-field-not-showing-drop-down-box-properly/175965)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 4\
**Last updated:** [September 24, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/auto-complete-text-field-not-showing-drop-down-box-properly/175965 "2009-09-24T22:07:04Z")

</div>

This may be more of an Ajax question than a Rails question, but I’m pretty new to Rails and know approximately zero JS. I’d love if someone could give me a little direction. I’m using pat shaughnessy’s nested text\_fie…

---

## [Simple RJS question--toggling the text of a link\_to\_function link](https://www.ruby-forum.com/t/simple-rjs-question-toggling-the-text-of-a-link-to-function-link/174112)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 4\
**Last updated:** [August 25, 2009, 3:14pm UTC](https://www.ruby-forum.com/t/simple-rjs-question-toggling-the-text-of-a-link-to-function-link/174112 "2009-08-25T15:14:38Z")

</div>

Hey All, I’m dabbling in a little DHTML to show/hide a fieldset on a page, w/ the following: \<%= link\_to\_function(“Show People”, nil, :id =\> “more\_link”) do |page| page.visual\_effect(:toggle\_appear, “organization-pe…

---

## [\[BUG:1.9\] Dir.glob should not convert entries on UNIX](https://www.ruby-forum.com/t/bug-1-9-dir-glob-should-not-convert-entries-on-unix/165298)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 4\
**Last updated:** [April 15, 2009, 5:07am UTC](https://www.ruby-forum.com/t/bug-1-9-dir-glob-should-not-convert-entries-on-unix/165298 "2009-04-15T05:07:48Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B File.open e$B$NF0:n$H@09g@-$r;}$?$;$k$?$a$K!"e(BDir.glob e$B$Oe(B UNIX e$B\>e$G$O!"e(B e$BM?$($i$l$?J8;zNs$H%U%!%$%k%7%9%F%\`$+$iF@$i$l$?J8;zNs$r!"JQ49$;$:e(B e$B$=$N$^$^%P%$%HNs$…

---

## [Would "root" allow for captures?](https://www.ruby-forum.com/t/would-root-allow-for-captures/165212)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 4\
**Last updated:** [April 11, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/would-root-allow-for-captures/165212 "2009-04-11T19:36:33Z")

</div>

i’d like to do something like: server { listen 80; server\_name \*.user.foo.com; root /home/user/web/$1; } this would be basically required too: server { listen 80; server\_name \*.user.foo.com; root /home/user/web…

---

## [Initializing collection\_select](https://www.ruby-forum.com/t/initializing-collection-select/164906)

<div class="topic-metadata">

**Author:** [@LukeG](https://www.ruby-forum.com/u/LukeG)\
**Replies:** 4\
**Last updated:** [April 8, 2009, 6:21pm UTC](https://www.ruby-forum.com/t/initializing-collection-select/164906 "2009-04-08T18:21:17Z")

</div>

I’m a noob. I’ve trolled the web and groups for help, but I just don’t know enough Rails to apply the solutions to my particular problem. I even got the screencast from Pragmatic Programmers, but still no dice. I’m ha…

---

## [Trim all input fields](https://www.ruby-forum.com/t/trim-all-input-fields/164006)

<div class="topic-metadata">

**Author:** [@nikhilvaghela](https://www.ruby-forum.com/u/nikhilvaghela)\
**Replies:** 4\
**Last updated:** [March 26, 2009, 10:27pm UTC](https://www.ruby-forum.com/t/trim-all-input-fields/164006 "2009-03-26T22:27:25Z")

</div>

Hi all, What is the easiest way to trim all input fields before validation. Also on error the field should show the trimed version of the data. Any help would be appreciated, Thanks.

---

## [Rails startup error in segments.rb](https://www.ruby-forum.com/t/rails-startup-error-in-segments-rb/159215)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 4\
**Last updated:** [March 3, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/rails-startup-error-in-segments-rb/159215 "2009-03-03T20:49:39Z")

</div>

=\> Booting WEBrick… /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.2.2/lib/ action\_controller/routing/segments.rb:6: warning: encoding option is ignored - N =\> Rails 2.2.2 application started on http://0.0.0.0:3000 …

---

## [\[ANN\] Radiant 0.7.1 - Engraving Release (bugfix)](https://www.ruby-forum.com/t/ann-radiant-0-7-1-engraving-release-bugfix/160388)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 4\
**Last updated:** [February 16, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/ann-radiant-0-7-1-engraving-release-bugfix/160388 "2009-02-16T17:34:58Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ Radiant 0.7.1 Engraving is a bugfix release that corrects two errors in the user-interface. The contents of page-parts will now mai…

---

## [Rails on ruby-1.8.7](https://www.ruby-forum.com/t/rails-on-ruby-1-8-7/159835)

<div class="topic-metadata">

**Author:** [@toy](https://www.ruby-forum.com/u/toy)\
**Replies:** 4\
**Last updated:** [February 10, 2009, 10:27am UTC](https://www.ruby-forum.com/t/rails-on-ruby-1-8-7/159835 "2009-02-10T10:27:56Z")

</div>

Download page(http://rubyonrails.org/download) tells as follows “We recommend Ruby 1.8.7 for use with Rails.” Which version of RoR is stable(or available) on ruby-1.8.7? I want to use rails-2.1.2. but I dont know that…

---

## [Authenticity Token change under 2.2.2?](https://www.ruby-forum.com/t/authenticity-token-change-under-2-2-2/154692)

<div class="topic-metadata">

**Author:** [@sijomo](https://www.ruby-forum.com/u/sijomo)\
**Replies:** 4\
**Last updated:** [December 3, 2008, 9:14am UTC](https://www.ruby-forum.com/t/authenticity-token-change-under-2-2-2/154692 "2008-12-03T09:14:26Z")

</div>

Hi, We have the following code which sends a request on unload of one of our pages. It was working fine until I upgraded to rails 2.2.2, but now is giving ‘ActionController::InvalidAuthenticityToken (ActionController…

---

## [Patch 2/3: usrp specific patches](https://www.ruby-forum.com/t/patch-2-3-usrp-specific-patches/148727)

<div class="topic-metadata">

**Author:** [@Stefan\_BrSSS\_ns](https://www.ruby-forum.com/u/Stefan_BrSSS_ns)\
**Replies:** 4\
**Last updated:** [September 18, 2008, 8:09pm UTC](https://www.ruby-forum.com/t/patch-2-3-usrp-specific-patches/148727 "2008-09-18T20:09:04Z")

</div>

On Tuesday 16 September 2008 14:24:49 Stefan BrÃ¼ns wrote: Changes: made usrp\_basic an abstract class made distinction between TX/RX based on usrp\_basic\_{tx,rx} removed d\_tx variable use virtual functions instead of…

---

## [Unescaping html](https://www.ruby-forum.com/t/unescaping-html/146141)

<div class="topic-metadata">

**Author:** [@vivek](https://www.ruby-forum.com/u/vivek)\
**Replies:** 4\
**Last updated:** [August 18, 2008, 3:20pm UTC](https://www.ruby-forum.com/t/unescaping-html/146141 "2008-08-18T15:20:48Z")

</div>

Hi, Is there a method or any library which allows me to unescape encoded html. For example If I have hi%5Bthere%5D I should get hi\[there\] vivek

---

## [Activerecord concurrency](https://www.ruby-forum.com/t/activerecord-concurrency/144784)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 4\
**Last updated:** [August 2, 2008, 2:15am UTC](https://www.ruby-forum.com/t/activerecord-concurrency/144784 "2008-08-02T02:15:07Z")

</div>

Hey, I want to make sure that a user doesn’t edit a row while another user is editing it. A simple solution I figured was to set session\[:editing\] = row.id, and when a user clicks to edit a certain row, I’ll just che…

---

## [Pull full date from group\_by](https://www.ruby-forum.com/t/pull-full-date-from-group-by/144405)

<div class="topic-metadata">

**Author:** [@jackson](https://www.ruby-forum.com/u/jackson)\
**Replies:** 4\
**Last updated:** [July 31, 2008, 5:06am UTC](https://www.ruby-forum.com/t/pull-full-date-from-group-by/144405 "2008-07-31T05:06:27Z")

</div>

Hello there, I started with to\_set.classify and have the find function grouping by day. I then did a group\_by function to the same effect both in the model and the view. They both work wonderfully except I need to p…

---

## [Spam Protection](https://www.ruby-forum.com/t/spam-protection/126497)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 4\
**Last updated:** [January 21, 2008, 5:55am UTC](https://www.ruby-forum.com/t/spam-protection/126497 "2008-01-21T05:55:17Z")

</div>

I was disgruntled with the amount of spam I was getting, so I started setting up accounts for the various mailing lists I listen to. I use removed\_email\_address@domain.invalid to read the mail here. Along with the rs…

---

## [Inject SQL Statement in Rails](https://www.ruby-forum.com/t/inject-sql-statement-in-rails/122779)

<div class="topic-metadata">

**Author:** [@jojobert](https://www.ruby-forum.com/u/jojobert)\
**Replies:** 4\
**Last updated:** [December 13, 2007, 2:22am UTC](https://www.ruby-forum.com/t/inject-sql-statement-in-rails/122779 "2007-12-13T02:22:36Z")

</div>

Hi, I have a simple SQL statement which I would like to inject in my web application. The SQL statement is: Select course\_id from degrees where programme\_id = 1 I need to know the step by step on how to make this w…

---

## [Http://api.rubyonrails.org/ for rails 2.0?](https://www.ruby-forum.com/t/http-api-rubyonrails-org-for-rails-2-0/122353)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 4\
**Last updated:** [December 7, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/http-api-rubyonrails-org-for-rails-2-0/122353 "2007-12-07T14:56:23Z")

</div>

Are they online docs for rails 2.0 ??? like this for 1.x http://api.rubyonrails.org/

---

## [Problem with String.gsub and \\' as a replacement string](https://www.ruby-forum.com/t/problem-with-string-gsub-and-as-a-replacement-string/120482)

<div class="topic-metadata">

**Author:** [@ridcully](https://www.ruby-forum.com/u/ridcully)\
**Replies:** 4\
**Last updated:** [November 17, 2007, 12:48pm UTC](https://www.ruby-forum.com/t/problem-with-string-gsub-and-as-a-replacement-string/120482 "2007-11-17T12:48:44Z")

</div>

Hi, I want to replace all occurences of a certain character in a string with a backslash followed by a single quote. Sounds like a trivial task, but this is what I get: “this is a test”.gsub( “a”, “\\’” ) -\> “this i…

---

## [Listar todas las categorias](https://www.ruby-forum.com/t/listar-todas-las-categorias/117516)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 4\
**Last updated:** [October 17, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/listar-todas-las-categorias/117516 "2007-10-17T22:16:02Z")

</div>

Buenas, Me gustarÃ­a listar todas las categorÃ­as a las que pertenece un artÃ­culo en mi blog. La relaciÃ³n de categories y articles es de muchos a muchos y me inserta los datos en una tabla intermedia correctamente. …

---

## [Callcc, each and local val](https://www.ruby-forum.com/t/callcc-each-and-local-val/105394)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 4\
**Last updated:** [May 30, 2007, 10:24am UTC](https://www.ruby-forum.com/t/callcc-each-and-local-val/105394 "2007-05-30T10:24:44Z")

</div>

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B trunk e$B$Ne(B callcc e$B$K4X$7$F$G$9!#e(B Array#each e$B$N%V%m%C%/$NCf$Ge(B callcc e$B$r8F$s$@;~$N!"%m!\<%+%kJQ?t$Ne(B e$B;2\>H$,$\*$+$7$$$G$9!#e(B $ cat t.rb vv = 0 $c = 0 \[…

---

## [Why doesn't a renamed file adhere to an original variable?](https://www.ruby-forum.com/t/why-doesnt-a-renamed-file-adhere-to-an-original-variable/104304)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 4\
**Last updated:** [May 16, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/why-doesnt-a-renamed-file-adhere-to-an-original-variable/104304 "2007-05-16T19:19:57Z")

</div>

I need to send some graphics file over to UNIX land, but, without an extension. So, I rename the files and try to send them, and, Ruby complains that the file isn’t there. Why is it that a file rename doesn’t continue…

---

## [REXML + DTD example](https://www.ruby-forum.com/t/rexml-dtd-example/92815)

<div class="topic-metadata">

**Author:** [@carp](https://www.ruby-forum.com/u/carp)\
**Replies:** 4\
**Last updated:** [April 25, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/rexml-dtd-example/92815 "2007-04-25T12:01:52Z")

</div>

Hello Rubyists, I’d like to have a custom made XML configuration file parsed with a custom made DTD file. However, the documentation at http://www.ruby-doc.org/stdlib/libdoc/rexml/rdoc/classes/REXML/DTD.html doesn’t …

---

## [Array#sort -block with conditions for \<=\>'ing](https://www.ruby-forum.com/t/array-sort-block-with-conditions-for-ing/88145)

<div class="topic-metadata">

**Author:** [@carp](https://www.ruby-forum.com/u/carp)\
**Replies:** 4\
**Last updated:** [March 8, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/array-sort-block-with-conditions-for-ing/88145 "2007-03-08T17:09:07Z")

</div>

Hello Rubyists, I want to sort an array of objects of the same class (MyClass). The array should be sorted by arbitrary attributes of that class, but the problem is that one attribute can be nil. The code looks like …

---

## [YART - Yet Another Ruby Tutorial!](https://www.ruby-forum.com/t/yart-yet-another-ruby-tutorial/72690)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/yart-yet-another-ruby-tutorial/72690 "2006-10-18T10:44:06Z")

</div>

Hello to all in the Ruby world! \[James Edward G. II suggested I send this email to the list, as he thought some of you may be interested … so, here goes.\] I’ve spent the last few weeks putting together a classroom-bas…

---

## [Has\_many AND has\_many :through?](https://www.ruby-forum.com/t/has-many-and-has-many-through/99475)

<div class="topic-metadata">

**Author:** [@dinshaw](https://www.ruby-forum.com/u/dinshaw)\
**Replies:** 4\
**Last updated:** [July 23, 2006, 7:23pm UTC](https://www.ruby-forum.com/t/has-many-and-has-many-through/99475 "2006-07-23T19:23:36Z")

</div>

Hi, I am working on a scheduling app and I have a perpelextion (new word). I am wondering if the problem is my data model I have Users. Users can create Events. Users can be invited to Events created by other Users. …

---

## [RoR for new apps, PHP for existing (?)](https://www.ruby-forum.com/t/ror-for-new-apps-php-for-existing/99340)

<div class="topic-metadata">

**Author:** [@Wesley\_L](https://www.ruby-forum.com/u/Wesley_L)\
**Replies:** 4\
**Last updated:** [July 22, 2006, 12:41am UTC](https://www.ruby-forum.com/t/ror-for-new-apps-php-for-existing/99340 "2006-07-22T00:41:28Z")

</div>

I’ve been evaluating frameworks, technologies, etc. for my company for a little while now. This is what I’m about to conclude for my report: RoR is a good fit for new applications where we can define the DB schema. P…

---

## [Bug in Process.times?](https://www.ruby-forum.com/t/bug-in-process-times/97279)

<div class="topic-metadata">

**Author:** [@Robert\_Joseph\_Sheeh](https://www.ruby-forum.com/u/Robert_Joseph_Sheeh)\
**Replies:** 4\
**Last updated:** [July 6, 2006, 10:39am UTC](https://www.ruby-forum.com/t/bug-in-process-times/97279 "2006-07-06T10:39:48Z")

</div>

After repeatedly getting user+system times that are longer than real time by a constant factor (on a single, non hyper-threading processor), I thought I would inspect the code for Process.times at ruby-doc.org. It sho…

---

## [Re: Zed and Luis drop the bomb on Ruby's poor performance](https://www.ruby-forum.com/t/re-zed-and-luis-drop-the-bomb-on-rubys-poor-performance/95134)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 4\
**Last updated:** [May 23, 2006, 5:56am UTC](https://www.ruby-forum.com/t/re-zed-and-luis-drop-the-bomb-on-rubys-poor-performance/95134 "2006-05-23T05:56:46Z")

</div>

A couple weeks ago I asked whether YARV could compile most Ruby programs on Win32 (since I could not figure out a satisfactory answer from web pages to which I was referred). I am still hoping that someone can appris…

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

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