# Top

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

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

---

## [Include\_shell](https://www.ruby-forum.com/t/include-shell/210945)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [August 23, 2011, 4:33pm UTC](https://www.ruby-forum.com/t/include-shell/210945 "2011-08-23T16:33:06Z")

</div>

Hi I am pretty new to nginx I have been searching around to find if there is a similar option like include\_shell that lighttpd has to use shell scripts to auto generate conf files. It appears that there is no such o…

---

## [The program stops unpredictedly](https://www.ruby-forum.com/t/the-program-stops-unpredictedly/210237)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [August 3, 2011, 4:32pm UTC](https://www.ruby-forum.com/t/the-program-stops-unpredictedly/210237 "2011-08-03T16:32:20Z")

</div>

Hi all, I can’t find out why this program stops running. class my\_top\_block(gr.top\_block): def \_\_init\_\_(self): gr.top\_block.\_\_init\_\_(self) self.sample\_rate=1e6 self.usrp\_rate=128e6 self.tx\_freq = 2.48…

---

## [\[Ruby 1.9 - Bug #4546\]\[Open\] ruby-indent-beg-re の値が壊れている](https://www.ruby-forum.com/t/ruby-1-9-bug-4546-open-ruby-indent-beg-re/205216)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [June 26, 2011, 4:14pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-4546-open-ruby-indent-beg-re/205216 "2011-06-26T16:14:18Z")

</div>

Issue #4546 has been reported by Kenta M… Bug #4546: ruby-indent-beg-re の値が壊れている Author: Kenta M. Status: Open Priority: Normal Assignee: Category: lib Target version: 1.9.x ruby -v: trunk vim-ruby の indent/ru…

---

## [Rails 3 - Referencing the URL to determine i f a Nav Item is class=â€œselectedâ€](https://www.ruby-forum.com/t/rails-3-referencing-the-url-to-determine-i-f-a-nav-item-is-class-a-oeselecteda/196126)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 4\
**Last updated:** [October 7, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/rails-3-referencing-the-url-to-determine-i-f-a-nav-item-is-class-a-oeselecteda/196126 "2010-10-07T18:19:54Z")

</div>

The app can have the following URLs: /projects/ /projects/3 /projects/3/photos /projects/3/photos/312 I’d like to know how in Rails 3 I can look at the current URL and know which of the lines above is currently…

---

## [Ruby on Rails hosting](https://www.ruby-forum.com/t/ruby-on-rails-hosting/194213)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 4\
**Last updated:** [September 2, 2010, 12:34pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-hosting/194213 "2010-09-02T12:34:20Z")

</div>

Hello all, I’m in the market for a web host that supports Ruby on Rails. I’ve looked at Heroku, but really find them quite expensive. My budget is around $50-70 USD / month. And possibly on a VPS or semi-managed serv…

---

## [Initialize instance variable problem](https://www.ruby-forum.com/t/initialize-instance-variable-problem/194033)

<div class="topic-metadata">

**Author:** [@cameron1inm](https://www.ruby-forum.com/u/cameron1inm)\
**Replies:** 4\
**Last updated:** [August 29, 2010, 10:12am UTC](https://www.ruby-forum.com/t/initialize-instance-variable-problem/194033 "2010-08-29T10:12:40Z")

</div>

Why does this return nil for @city? class Url def initialize(city,quary,catagory,minask,maxask) @city = city @quary = quary @cat = catagory @min = minask @max = maxask end puts @city end a = Url.new(‘spokane’,…

---

## [Simple open source web admin for git repositories?](https://www.ruby-forum.com/t/simple-open-source-web-admin-for-git-repositories/184321)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 4\
**Last updated:** [March 1, 2010, 5:03am UTC](https://www.ruby-forum.com/t/simple-open-source-web-admin-for-git-repositories/184321 "2010-03-01T05:03:44Z")

</div>

Excuse this slightly off topic post, but I figure ruby-talk is a good community to ask, and if someone has done this they probably wrote it in Ruby :slight\_smile: Does anyone know of an open source tool that gives you…

---

## [Error installing some gems (Ruby 1.9.2)](https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716)

<div class="topic-metadata">

**Author:** [@Katherine](https://www.ruby-forum.com/u/Katherine)\
**Replies:** 4\
**Last updated:** [February 19, 2010, 3:43am UTC](https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716 "2010-02-19T03:43:21Z")

</div>

Hi I am testing Ruby 1.9.2 and Rails 3. Has anybody encountered this error: web katz$ gem install rspec-rails Thank you for installing rspec-rails-1.3.2 If you are upgrading, do this in each of your rails apps that…

---

## [Newbie - Moving Contents From Folder to Another](https://www.ruby-forum.com/t/newbie-moving-contents-from-folder-to-another/180610)

<div class="topic-metadata">

**Author:** [@woodyee](https://www.ruby-forum.com/u/woodyee)\
**Replies:** 4\
**Last updated:** [December 23, 2009, 12:46am UTC](https://www.ruby-forum.com/t/newbie-moving-contents-from-folder-to-another/180610 "2009-12-23T00:46:56Z")

</div>

Hi! I’m trying to create a program that will move contents that I’ve downloaded (i.e. folder called “Downloads”) to another folder (“Songs”). In other words, save mp3’s to “Downloads”, then run a Ruby script to move t…

---

## [Start\_with](https://www.ruby-forum.com/t/start-with/175880)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 4\
**Last updated:** [September 22, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/start-with/175880 "2009-09-22T14:37:24Z")

</div>

Can someone explain why this doesn’t work? class Person attr\_accessor :firstName P=\[\] def initialize P \<\< self end def self.find\_person(part) P.each {|e| if e.firstName.start\_with(part) then return e end} end e…

---

## [Script/general rspec\_\*](https://www.ruby-forum.com/t/script-general-rspec/166886)

<div class="topic-metadata">

**Author:** [@Nicholas\_Van\_W](https://www.ruby-forum.com/u/Nicholas_Van_W)\
**Replies:** 4\
**Last updated:** [May 1, 2009, 6:58am UTC](https://www.ruby-forum.com/t/script-general-rspec/166886 "2009-05-01T06:58:50Z")

</div>

I have started using rspec after generating much of my applications models and controllers. Much of the code is plain vanilla scaffolding. I accept that this is not very BDD, but I’m building a tool that required I …

---

## [How fast is Model.average compared to a find all and loop?](https://www.ruby-forum.com/t/how-fast-is-model-average-compared-to-a-find-all-and-loop/160984)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [February 22, 2009, 12:15am UTC](https://www.ruby-forum.com/t/how-fast-is-model-average-compared-to-a-find-all-and-loop/160984 "2009-02-22T00:15:35Z")

</div>

I have a set of results that I want to find some average values, divided into group\_1, \_2, and \_3. I have two options. Find all and then loop through all and in each loop calculate how many there are and the summery…

---

## [Which stable release packages](https://www.ruby-forum.com/t/which-stable-release-packages/157606)

<div class="topic-metadata">

**Author:** [@Markus\_F](https://www.ruby-forum.com/u/Markus_F)\
**Replies:** 4\
**Last updated:** [January 13, 2009, 7:43pm UTC](https://www.ruby-forum.com/t/which-stable-release-packages/157606 "2009-01-13T19:43:20Z")

</div>

Hi All, i am thinking about to throw away the trunk source and use the stable release. I want to realize an AM/FM Radio with the USRP. Which Packages do i need ? \<gnuradio-3.1.3.tar.gz\> \<gnuradio-core-2.8.tar.gz\> \<…

---

## [Photo gallery?](https://www.ruby-forum.com/t/photo-gallery/139720)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 4\
**Last updated:** [June 6, 2008, 12:22pm UTC](https://www.ruby-forum.com/t/photo-gallery/139720 "2008-06-06T12:22:23Z")

</div>

Ciao, Voi conoscete qualche sistema da “photo gallery” che non fa schifo? Quelli trovati finora per Rails sembrano un po’ deludenti. – David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/

---

## [Nub question: \<db/create.sql?](https://www.ruby-forum.com/t/nub-question-db-create-sql/115640)

<div class="topic-metadata">

**Author:** [@isea](https://www.ruby-forum.com/u/isea)\
**Replies:** 4\
**Last updated:** [April 8, 2008, 2:15am UTC](https://www.ruby-forum.com/t/nub-question-db-create-sql/115640 "2008-04-08T02:15:13Z")

</div>

Hello all: I am trying to get started with ROR coming from a classic ASP background. I am going step by step through “Agile Web D. with Rails” isbn 0-9766940-0-x. On page 55 I am trying backup my DDL with the fallowi…

---

## [Help with my config](https://www.ruby-forum.com/t/help-with-my-config/128981)

<div class="topic-metadata">

**Author:** [@equinox86](https://www.ruby-forum.com/u/equinox86)\
**Replies:** 4\
**Last updated:** [February 13, 2008, 10:42am UTC](https://www.ruby-forum.com/t/help-with-my-config/128981 "2008-02-13T10:42:28Z")

</div>

As soon as I add the expires section (at the bottom) accel-redirect for images stops working. Is it apparent why? My config: http://pastie.caboo.se/151398 Thanks, Alex

---

## [Why doesn't this file read work for me?](https://www.ruby-forum.com/t/why-doesnt-this-file-read-work-for-me/124926)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 4\
**Last updated:** [January 3, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/why-doesnt-this-file-read-work-for-me/124926 "2008-01-03T20:56:03Z")

</div>

Hi, I need to open files, just the first 75 bytes of them, and determine if there’s a string in the data. If the string is there, then, I do something. If not, then I do something else. Here’s my IRB try. I don’t und…

---

## [Checking form values inside RJS](https://www.ruby-forum.com/t/checking-form-values-inside-rjs/122739)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 4\
**Last updated:** [December 11, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/checking-form-values-inside-rjs/122739 "2007-12-11T22:16:47Z")

</div>

I’m testing a small bit of functionality using RJS. I have a form with a radio-button set – a Yes button and No button – and a text input. I’m using observe\_form to send the entire form to the server, instead of obser…

---

## [Campfire like chat plugin?](https://www.ruby-forum.com/t/campfire-like-chat-plugin/117962)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [November 28, 2007, 6:34pm UTC](https://www.ruby-forum.com/t/campfire-like-chat-plugin/117962 "2007-11-28T18:34:17Z")

</div>

I’ve got to write a little app at work for doctors and med students to view a streaming video feed, and the users want the ability to have a chat window. I’ve got everything else figured out, authentication, the strea…

---

## [Question about string compares with ruby](https://www.ruby-forum.com/t/question-about-string-compares-with-ruby/116069)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 4\
**Last updated:** [October 2, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/question-about-string-compares-with-ruby/116069 "2007-10-02T16:49:15Z")

</div>

Say I have two entries in my database: Bartlett Peabody A user runs a search, and I want to return all matches to the name above. So the user types in “Bartlett Street”, and I want it to return #1 above. My ruby c…

---

## [Searching Spotlight with ruby](https://www.ruby-forum.com/t/searching-spotlight-with-ruby/115284)

<div class="topic-metadata">

**Author:** [@Filipe](https://www.ruby-forum.com/u/Filipe)\
**Replies:** 4\
**Last updated:** [September 23, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/searching-spotlight-with-ruby/115284 "2007-09-23T20:51:59Z")

</div>

Is it possible to search for files using spotlight in ruby just like it’s done on the terminal with the command ‘mdfind’?

---

## [Passing var to anoter script](https://www.ruby-forum.com/t/passing-var-to-anoter-script/115098)

<div class="topic-metadata">

**Author:** [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Replies:** 4\
**Last updated:** [September 22, 2007, 12:27am UTC](https://www.ruby-forum.com/t/passing-var-to-anoter-script/115098 "2007-09-22T00:27:00Z")

</div>

Hey, I’m working on script using Watir class where I want to pass variable of Watir class to another script and I’m getting an error saying "syntax of the command is invalid’, but when I pass any other variable it wor…

---

## [Learn First?](https://www.ruby-forum.com/t/learn-first/113820)

<div class="topic-metadata">

**Author:** [@BScott](https://www.ruby-forum.com/u/BScott)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/learn-first/113820 "2007-09-05T16:22:59Z")

</div>

Hello, all I’m new to Ruby and I purchased both Agile books for learning Ruby & Rails. I don’t know If I should learn Ruby first or dive into Rails?

---

## [Gem update](https://www.ruby-forum.com/t/gem-update/105034)

<div class="topic-metadata">

**Author:** [@jacquie](https://www.ruby-forum.com/u/jacquie)\
**Replies:** 4\
**Last updated:** [May 25, 2007, 7:33am UTC](https://www.ruby-forum.com/t/gem-update/105034 "2007-05-25T07:33:19Z")

</div>

Hi,all I tried to do gem update --system in my windows XP box. then I’ve got Updating RubyGems… Need to update 18 gems from http://gems.rubyforge.org … complete Attempting remote update of rubygems-update ERROR: …

---

## [Dispatch.cgi issue](https://www.ruby-forum.com/t/dispatch-cgi-issue/90632)

<div class="topic-metadata">

**Author:** [@JPJPJP](https://www.ruby-forum.com/u/JPJPJP)\
**Replies:** 4\
**Last updated:** [May 7, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/dispatch-cgi-issue/90632 "2007-05-07T19:17:40Z")

</div>

Hello, I’m very new to Rails. I’ve been trying to set it up on my Linux server. The installation was smooth and painless. I followed the instructions on the Ruby on Rails website. So I’m running Rails 1.2.3, ruby 1.8…

---

## [Accidental Dir.glob behavior change in 1.8.6](https://www.ruby-forum.com/t/accidental-dir-glob-behavior-change-in-1-8-6/92295)

<div class="topic-metadata">

**Author:** [@Elliott\_Hughes](https://www.ruby-forum.com/u/Elliott_Hughes)\
**Replies:** 4\
**Last updated:** [April 26, 2007, 4:02am UTC](https://www.ruby-forum.com/t/accidental-dir-glob-behavior-change-in-1-8-6/92295 "2007-04-26T04:02:49Z")

</div>

expected/1.8.4 behavior download ruby-1.8.4, extract, cd into the source root. (alternatively, use Ubuntu 6.10’s ruby package.) ./configure && make && ./ruby -w -e ‘puts(Dir.glob(“v\*/config.h”))’ produces (after the b…

---

## [External 1pps pulse](https://www.ruby-forum.com/t/external-1pps-pulse/89058)

<div class="topic-metadata">

**Author:** [@hgranqvist](https://www.ruby-forum.com/u/hgranqvist)\
**Replies:** 4\
**Last updated:** [March 21, 2007, 5:52am UTC](https://www.ruby-forum.com/t/external-1pps-pulse/89058 "2007-03-21T05:52:27Z")

</div>

Hello, I currently have four complex input signals coming in through USB and I have a 1pps timing pulse coming from a gps source that I need to synchronize the 64MHz clock to and also pass on to the PC so that I know …

---

## [Testing ... with console](https://www.ruby-forum.com/t/testing-with-console/86381)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 4\
**Last updated:** [February 22, 2007, 10:19am UTC](https://www.ruby-forum.com/t/testing-with-console/86381 "2007-02-22T10:19:57Z")

</div>

I’m still new leas than 40 hours with rails, and while I’ve been following the discussion about testing I’m still further back along the line, working my way though AWDwR and trying variations. One thing I noted is…

---

## [Trouble with executing discrete testcase functions within a](https://www.ruby-forum.com/t/trouble-with-executing-discrete-testcase-functions-within-a/81600)

<div class="topic-metadata">

**Author:** [@KpKpKp](https://www.ruby-forum.com/u/KpKpKp)\
**Replies:** 4\
**Last updated:** [January 11, 2007, 9:41am UTC](https://www.ruby-forum.com/t/trouble-with-executing-discrete-testcase-functions-within-a/81600 "2007-01-11T09:41:01Z")

</div>

Hi, I was having some trouble trying to execute a set of testcase functions (to run Selenium tests) within a class inherited from the Test::Unit::TestCase class… the issue here is, I need access to individual functi…

---

## [Another Q: find behavior](https://www.ruby-forum.com/t/another-q-find-behavior/80648)

<div class="topic-metadata">

**Author:** [@Krekna\_M](https://www.ruby-forum.com/u/Krekna_M)\
**Replies:** 4\
**Last updated:** [December 29, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/another-q-find-behavior/80648 "2006-12-29T18:00:54Z")

</div>

Hi, Still learning from the Pickaxe book, and I’ve got a question about this code: class Array def find for i in 0…size value = self\[i\] puts self\[i\] return value if yield(value) end return nil end end \[1,3,5…

---

## [Book wanted: Concurrent Ruby Programming (was Re: Book wante](https://www.ruby-forum.com/t/book-wanted-concurrent-ruby-programming-was-re-book-wante/75105)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 4\
**Last updated:** [November 8, 2006, 4:29pm UTC](https://www.ruby-forum.com/t/book-wanted-concurrent-ruby-programming-was-re-book-wante/75105 "2006-11-08T16:29:35Z")

</div>

Ola B. wrote: Ruby Wish List resident expert, I think … But concurrency in Ruby is still green threads, so that would have to be either concurrency with YARV, or concurrency with separate Ruby processes communi…

---

## [Instance variable not holding between get? and post](https://www.ruby-forum.com/t/instance-variable-not-holding-between-get-and-post/74387)

<div class="topic-metadata">

**Author:** [@Flippper](https://www.ruby-forum.com/u/Flippper)\
**Replies:** 4\
**Last updated:** [November 6, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/instance-variable-not-holding-between-get-and-post/74387 "2006-11-06T14:46:15Z")

</div>

I am having trouble with this bit of code if request.get? session\[:user\_id\] = nil @user = User.new logger.error("get:#{@user.object\_id}") else logger.error("post:#{@user.object\_id}") logged\_in\_user = @user.try…

---

## [Degrading to same URL](https://www.ruby-forum.com/t/degrading-to-same-url/72507)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 4\
**Last updated:** [October 17, 2006, 8:48pm UTC](https://www.ruby-forum.com/t/degrading-to-same-url/72507 "2006-10-17T20:48:11Z")

</div>

I hope this comes out clearly - I think I want to try and degrade to the same URL (Ajax vs non-Ajax) It looks like (looking at a slide - Codecite.com is for sale | HugeDomains) the request goes into the same controll…

---

## [ActiveSupport::Multibyte question || Rails console question](https://www.ruby-forum.com/t/activesupport-multibyte-question-rails-console-question/71338)

<div class="topic-metadata">

**Author:** [@AdriSSSSn\_De\_la\_Cru](https://www.ruby-forum.com/u/AdriSSSSn_De_la_Cru)\
**Replies:** 4\
**Last updated:** [October 7, 2006, 7:08pm UTC](https://www.ruby-forum.com/t/activesupport-multibyte-question-rails-console-question/71338 "2006-10-07T19:08:27Z")

</div>

Hello guys, I just saw this video: http://www.fngtps.com/2006/10/activesupport-multibyte And was trying to reproduce the example in there. I got Edge Rails (rev5229). So what I did was this (the comments are the out…

---

## [Creating a child simultaneously with parent via form](https://www.ruby-forum.com/t/creating-a-child-simultaneously-with-parent-via-form/101842)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 2:25pm UTC](https://www.ruby-forum.com/t/creating-a-child-simultaneously-with-parent-via-form/101842 "2006-08-15T14:25:19Z")

</div>

Hi there I’ve got a user model and an address model; a user has\_many addresses. A user object can be created via an html form which also allows for an initial address to be created. I’ve got a controller method worki…

---

## [\[ANN\] Radiant 0.5 - Grindstone](https://www.ruby-forum.com/t/ann-radiant-0-5-grindstone/96524)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 4\
**Last updated:** [June 29, 2006, 10:31am UTC](https://www.ruby-forum.com/t/ann-radiant-0-5-grindstone/96524 "2006-06-29T10:31:05Z")

</div>

I’m pleased to announce the release of 0.5. To get started you can install Radiant via Ruby Gems like this: % gem install --include-dependencies radiant As of right now the gem doesn’t look like it’s propagated to the…

---

## [Set forign key](https://www.ruby-forum.com/t/set-forign-key/94592)

<div class="topic-metadata">

**Author:** [@ssssss](https://www.ruby-forum.com/u/ssssss)\
**Replies:** 4\
**Last updated:** [May 8, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/set-forign-key/94592 "2006-05-08T17:32:08Z")

</div>

hi, got a small problem below and not to sure how to overcome this using rails two tables involved with this projects and quotes each project has a field quote\_id as a forign field. When a user is ready to upload a …

---

## [Sql injection](https://www.ruby-forum.com/t/sql-injection/93942)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [April 15, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/sql-injection/93942 "2006-04-15T20:55:08Z")

</div>

Hi, All through my current project, I’ve been assuming that rails is clever enough to prevent SQL injections automatically. Is this right? If not, what’s the best way of doing it? -Nathan

---

## [Ajax question, not so basic I guess](https://www.ruby-forum.com/t/ajax-question-not-so-basic-i-guess/57063)

<div class="topic-metadata">

**Author:** [@daniel](https://www.ruby-forum.com/u/daniel)\
**Replies:** 4\
**Last updated:** [April 7, 2006, 12:13pm UTC](https://www.ruby-forum.com/t/ajax-question-not-so-basic-i-guess/57063 "2006-04-07T12:13:06Z")

</div>

Hey Is there a ajax method that triggers when the page is fully loaded? I want to be able to specify which div to update, something like this: \<%= on\_page\_loaded( :update =\> “generatedimage”, :url =\> { :action =\> :g…

---

## [Record retrieval in Many-to-many using :through not working](https://www.ruby-forum.com/t/record-retrieval-in-many-to-many-using-through-not-working/57044)

<div class="topic-metadata">

**Author:** [@Vaishal\_S](https://www.ruby-forum.com/u/Vaishal_S)\
**Replies:** 4\
**Last updated:** [April 6, 2006, 10:02pm UTC](https://www.ruby-forum.com/t/record-retrieval-in-many-to-many-using-through-not-working/57044 "2006-04-06T22:02:08Z")

</div>

Hello, I get an error while retrieving records from the following model structure. Tables foods - id, food foodallergies - food\_id, symptom\_id, a few other columns symptoms - id, symptom Models class Food \< Activ…

---

## [How to read rails documentation](https://www.ruby-forum.com/t/how-to-read-rails-documentation/93564)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [April 4, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/how-to-read-rails-documentation/93564 "2006-04-04T23:23:53Z")

</div>

One of the criticism I have heard about rails is that the documentation is bad. I must admit I have a hard time trying to follow it and I wonder if anyone can shed some light on it for me. For example, I am looking…

---

## [Calling an actionview method from inside a model](https://www.ruby-forum.com/t/calling-an-actionview-method-from-inside-a-model/55004)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 4\
**Last updated:** [March 16, 2006, 3:54am UTC](https://www.ruby-forum.com/t/calling-an-actionview-method-from-inside-a-model/55004 "2006-03-16T03:54:38Z")

</div>

Hi, I would like my model instance to produce it’s own list of options for a form select. This is from a product model that has\_many variations def alts\_for\_select(current\_id) the\_map = variations.map{|v| \[v.name, v…

---

## [Validates\_presence\_of \*\_id attributes](https://www.ruby-forum.com/t/validates-presence-of-id-attributes/56098)

<div class="topic-metadata">

**Author:** [@John\_I](https://www.ruby-forum.com/u/John_I)\
**Replies:** 4\
**Last updated:** [January 3, 2006, 7:28pm UTC](https://www.ruby-forum.com/t/validates-presence-of-id-attributes/56098 "2006-01-03T19:28:24Z")

</div>

Hi all, I am a newbie to Rails. Please enlighten me on how to do this appropriately, the Rails and the Ruby way: Suppose I have a Recipe model. Let’s simplify things and pretend that it has only 2 attributes, a :name…

---

## [Multibyte regexps](https://www.ruby-forum.com/t/multibyte-regexps/50807)

<div class="topic-metadata">

**Author:** [@Horacio\_S](https://www.ruby-forum.com/u/Horacio_S)\
**Replies:** 4\
**Last updated:** [December 21, 2005, 12:33pm UTC](https://www.ruby-forum.com/t/multibyte-regexps/50807 "2005-12-21T12:33:11Z")

</div>

I am having some issues with regular expressions when working with japanese strings. Using ruby-1.8.3 on Windows XP home (Japanese version) I have this test: irb(main):271:0\> s = “é??” =\> “\\212\\223” irb(main):272:0\>…

---

## [What happened to mysql connection?](https://www.ruby-forum.com/t/what-happened-to-mysql-connection/48053)

<div class="topic-metadata">

**Author:** [@segabor](https://www.ruby-forum.com/u/segabor)\
**Replies:** 4\
**Last updated:** [November 16, 2005, 10:40pm UTC](https://www.ruby-forum.com/t/what-happened-to-mysql-connection/48053 "2005-11-16T22:40:56Z")

</div>

I’ve been using Rails for more than six months and until today I had no problem with mysql connection. It’s a Mac OS X 10.4 box having rails installed and updated by gem. I use a remote mysql server no local instance …

---

## [LoginEngine - transaction test oddness](https://www.ruby-forum.com/t/loginengine-transaction-test-oddness/47581)

<div class="topic-metadata">

**Author:** [@james.adam](https://www.ruby-forum.com/u/james.adam)\
**Replies:** 4\
**Last updated:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/loginengine-transaction-test-oddness/47581 "2005-11-12T12:49:33Z")

</div>

I’ve just adapted the original salted hashed login generator tests for the login engine, such that we can now run tests against it and verify that it behaves nicely, in the same way that you might test any Rails plugi…

---

## [Threading an email queueing system](https://www.ruby-forum.com/t/threading-an-email-queueing-system/185767)

<div class="topic-metadata">

**Author:** [@n4d4](https://www.ruby-forum.com/u/n4d4)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 7:05pm UTC](https://www.ruby-forum.com/t/threading-an-email-queueing-system/185767 "2010-03-25T19:05:58Z")

</div>

I needed an email queueing system for a project I am writing. The script below runs every minute via a cronjob on one of my servers. I am using a table in mysql to keep track of the number of email bot threads to s…

---

## [Energy Detection Sensing Time Calculation?](https://www.ruby-forum.com/t/energy-detection-sensing-time-calculation/243010)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 14, 2015, 7:02pm UTC](https://www.ruby-forum.com/t/energy-detection-sensing-time-calculation/243010 "2015-08-14T19:02:04Z")

</div>

Hello community, How do I calculate the sensing time of my Energy Detection flow graph in GRC? Any tips? Thanks. – Best, \*Gerome Jan M. Llames \* Engineering Research and Development for Technology (ERDT) Scholar U…

---

## [Which Ruby Based ERP system is recommended?](https://www.ruby-forum.com/t/which-ruby-based-erp-system-is-recommended/242584)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [July 6, 2015, 3:31pm UTC](https://www.ruby-forum.com/t/which-ruby-based-erp-system-is-recommended/242584 "2015-07-06T15:31:33Z")

</div>

I’d like to integrate my Ruby based application with ERP system. Which Ruby Based ERP system is recommended?

---

## [Nginx-1.5.11](https://www.ruby-forum.com/t/nginx-1-5-11/239554)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 5, 2014, 4:14pm UTC](https://www.ruby-forum.com/t/nginx-1-5-11/239554 "2014-03-05T16:14:42Z")

</div>

Changes with nginx 1.5.11 04 Mar 2014 \*) Security: memory corruption might occur in a worker process on 32-bit platforms while handling a specially crafted request by ngx\_http…

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

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